Spring Boot | Dynamic Inserts & Updates With Spring Data JPA | JavaTechie

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 109

  • @mohitsharma9553
    @mohitsharma9553 Год назад +9

    Really good stuff for enterprise level projects. Please continue posting such videos to get industry level knowledge.

  • @soundarraghavan3962
    @soundarraghavan3962 3 месяца назад +1

    Basant I am your big fan ❤ Everytime When I plan to switch company, your videos are only my mentor. So far I switched 4 companies. Now I'm in good package. Thank you so much for everything ❤️

    • @Javatechie
      @Javatechie  3 месяца назад

      Hello Raghavan , I am so happy to hear this keep learning buddy 😊 and congratulations 🎊 👏

    • @soundarraghavan3962
      @soundarraghavan3962 3 месяца назад +1

      @@Javatechie ❤️💕

  • @MrAchilles2
    @MrAchilles2 Год назад +4

    Basant !!!
    you are awesome man
    thank you for keeping us enriched with new topics

  • @akashdivekar152
    @akashdivekar152 Год назад +1

    I stumbled upon this channel while checking feignclient implementations.
    Later I went through some 2-3 videos and found those very useful(then I immediately subscribed 😂). Thanks for to the point and neat explanations. Please post more videos on performance improvements it helps us a lot.

  • @waqasahmed8660
    @waqasahmed8660 Год назад +2

    Thank you for the useful knowledge related to JPA. Didn't have any idea these annotations existed.

  • @dejarvis8407
    @dejarvis8407 Год назад +1

    Wonderful Explanation

  • @ankuragarwal252
    @ankuragarwal252 Год назад +1

    Thanks for the information. Pls continue post such useful videos.

  • @asashish905
    @asashish905 Год назад +5

    Please bring out more similar topics about jpa and springboot performance. 🤩
    Thank you for this one Basant. ✌️🙂

    • @Javatechie
      @Javatechie  Год назад

      Sure Ashish 🙂

    • @pianomusiclover4545
      @pianomusiclover4545 Год назад

      @@Javatechie basant if posible simple login with oauth2,0 custom auth server example please ..with database client id and secret

  • @jainamdesai4230
    @jainamdesai4230 Год назад +1

    Completely new and api performance optimization feature..very good elaboration. Thank you👍👍👍

  • @vinodhreddy6227
    @vinodhreddy6227 Год назад +2

    Excellent 👌

  • @nabinkhatiwada4597
    @nabinkhatiwada4597 Год назад +6

    Thank you. In update operation, When i was using model mapper to convert DTO to DB object, fields like created date time becomes null by default since not present in DTO. For update, i don't need to reinitialize those fields now. Thanks

  • @benjaminfrank9166
    @benjaminfrank9166 Год назад +1

    Amazing 👍

  • @akshayengineer2018
    @akshayengineer2018 Год назад +1

    Thank You So Much Basant sir, it will surely increase my application performance... please bring more more topics like this...

  • @tanmaybhadra3314
    @tanmaybhadra3314 Год назад +1

    This ia very good video. Example and content was very to the point.

  • @nchavva
    @nchavva Год назад +1

    Nice concept

  • @jitendrapandey176
    @jitendrapandey176 Год назад +2

    You make such amazing video JavaTechie, I have no enough words to praise 🙂.. 💯

  • @nagendra.t
    @nagendra.t Год назад +1

    Thanks basant ,now I will implement this in my project. Thanks for sharing your knowledge 🙂.

  • @ebinb4951
    @ebinb4951 Год назад +1

    Useful content

  • @anandlshinde
    @anandlshinde Год назад +1

    💯 Really helpful Thanks

  • @bashachand8590
    @bashachand8590 Год назад +1

    It will be good if you can show how performance is improved in time

  • @rohanpatil2234
    @rohanpatil2234 Год назад +2

    Really good content appreciate it. The way you explain is really good

  • @akumarsingh85
    @akumarsingh85 Год назад +2

    As always a well thought out content 👍

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 Год назад +1

    You are legend sir

  • @AshishYadav-se4db
    @AshishYadav-se4db Год назад +1

    As always a well thought out content 👍🙏🙏

  • @ganeshmohanty1599
    @ganeshmohanty1599 Год назад +1

    Thanks for giving me an updated one.

  • @SamPaulIsaac
    @SamPaulIsaac 7 месяцев назад

    This is really helpful! Thank you.

  • @medAmineRg
    @medAmineRg 10 месяцев назад +1

    great stuff thanks

  • @motolola
    @motolola Год назад +2

    Thank you as always, this is really great, and a very powerful yet simple way for performance improvement. Is there any downside to it as I wonder why it is not included by default?

    • @Javatechie
      @Javatechie  Год назад

      As i mentioned hibernate load default insert and update query by considering all the attributes of your entity.this way every time hibernate will reuse the same query to increase it's internal performance of using query but it will impact on application performance

  • @AnkitPandey-tl9vu
    @AnkitPandey-tl9vu Год назад +1

    good stuff ! but If you're updating or inserting a large number of entities, the extra overhead of generating dynamic SQL statements at runtime could impact performance right ?

  • @TechSpy
    @TechSpy Год назад +3

    Hi Basant bhai,
    Need tutorial on JPA Criteria Query and Specifications.
    Please, it would be very helpful for everyone.

    • @Javatechie
      @Javatechie  Год назад +1

      Okay we will do that

    • @сойка-и8й
      @сойка-и8й Год назад +2

      @@Javatechie yes please

    • @sneak9407
      @sneak9407 Год назад +2

      Lmao, my company uses that criteria and specification for dB queries.
      It saves you a lot of stress of writing multiple routes for specific searches.

  • @kishordige9721
    @kishordige9721 Год назад +1

    Thanks

  • @jsiddiqui
    @jsiddiqui Год назад +1

    Good job, Java Techie all videos are really helpful.
    by the way what is owner name?😀

  • @qaisarabbas2488
    @qaisarabbas2488 Год назад +1

    Kindly make the tutorial about multiple database connection in spring boot best practices

    • @Javatechie
      @Javatechie  Год назад

      It's already there please check with multiple data source in spring boot

  • @lts8683
    @lts8683 Год назад +3

    Excellent
    Can you talk about n+1 hibernate problem

  • @layendiaye7366
    @layendiaye7366 Год назад +1

    cool.

  • @mokashmokash9890
    @mokashmokash9890 Год назад +1

    Hi Bro,
    Create video on Debugging.
    I joined as experienced person but I'm facing some issue while debugging.. please create a video on Debugging,so it will all of us..

  • @PraveenKumar-oc3mg
    @PraveenKumar-oc3mg Год назад +1

    Thank you 😍😍

  • @durai3816
    @durai3816 Год назад

    Damn I was looking for this last week.. just one annotation helps

  • @leat5680
    @leat5680 Год назад +1

    Good content, you can perform login with oauth2.0 and save it to id in database thank

  • @chhayakantanaik9468
    @chhayakantanaik9468 Год назад +1

    Thanks 😊

  • @amanueltesfu6071
    @amanueltesfu6071 Год назад +1

    Good morning Basant, can these two annotations(@DynamicInsert and @DynamicUpdate) replace PATCH HTTP Method?

    • @Javatechie
      @Javatechie  Год назад

      No these annotations will just optimise the query

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 Год назад

    Please make video on n+1 problem..it is being asked in many interviews

  • @pianomusiclover4545
    @pianomusiclover4545 Год назад +1

    basant if posible simple login with oauth2,0 custom auth server example please ..with database client id and secret

  • @PixelLoafLatte
    @PixelLoafLatte Год назад +1

    Thank you, i think this is impossible with jpa, so i do native query all the time lol. How about dynamic select and join? jpa always select more fields than i need

    • @Javatechie
      @Javatechie  Год назад +2

      For select and join will check and update you

  • @dhirajnavale3861
    @dhirajnavale3861 Год назад +1

    Hi can you do a video on spring boot and GraalVM

    • @Javatechie
      @Javatechie  Год назад

      Yes i will do that

    • @dhirajnavale3861
      @dhirajnavale3861 Год назад

      @@Javatechie Thankyou for your reply and all your videos 🥹🥹🥹

  • @vengateshm2122
    @vengateshm2122 Год назад +1

    For dynamic update you gave name and price in request body in post man but query showed only price column.
    Is it because the new name and existing name are same?

    • @Javatechie
      @Javatechie  Год назад +1

      Yes correct. @DynamicUpdate is smart enough to scan it .

    • @vengateshm2122
      @vengateshm2122 Год назад +1

      @@Javatechie Thank You very much

  • @hieuduong8902
    @hieuduong8902 Год назад

    Thank you

  • @streamclean1470
    @streamclean1470 Год назад +1

    Will these 2 annotations works fine with only save() ? What about saveAll() ?

    • @Javatechie
      @Javatechie  Год назад

      These 2 for insert and update operation

    • @streamclean1470
      @streamclean1470 Год назад +1

      If we use saveAll() to save a bunch of records, ain't these annotations work??

    • @Javatechie
      @Javatechie  Год назад

      Yes it will work

    • @streamclean1470
      @streamclean1470 Год назад +1

      Thank You So Much Basant Bhai.... Jay Jagannath 🙏

  • @Pqrstuvwxyz-w9o
    @Pqrstuvwxyz-w9o Год назад +1

    Crud using dto can u explain plss

    • @Javatechie
      @Javatechie  Год назад

      It doesn't matter whether you used dto or not entity will save to db

  • @subba18
    @subba18 Год назад +1

    How do I display values in the insert statement?

  • @IvanRandomDude
    @IvanRandomDude Год назад +1

    At this point it is easier to use jooq and have full control over database then trying to hack and learn bs details about JPA.

  • @pianomusiclover4545
    @pianomusiclover4545 Год назад +1

    Oauth2.0 custom auth server example need no using Keyclock

    • @Javatechie
      @Javatechie  Год назад

      Not using keyclock but i will create custom auth server

    • @pianomusiclover4545
      @pianomusiclover4545 Год назад +1

      @@Javatechie yes thanks..if posible please do login page in angular as well it will provide clarity..

  • @udhayasankar113
    @udhayasankar113 Год назад +1

    What is the validity of microservices live course?

  • @FactMash-786
    @FactMash-786 Год назад

    Hi! how can i reach you? any email id? facing issues creating SSO

  • @sairanganath9293
    @sairanganath9293 Год назад +1

    What if name is same for other record?

    • @Javatechie
      @Javatechie  Год назад

      Not getting you can you elaborate bit

    • @sairanganath9293
      @sairanganath9293 Год назад

      If we are not passing id in update, how will it differentiate with other records. If id 1 and 3 have same book name it will be update both the records correct

  • @helloworld9124
    @helloworld9124 Год назад +1

    please use dark theme on future videos, the white hurt my eyes :(

  • @dejarvis8407
    @dejarvis8407 Год назад +1

    Basant bhai tamar kou college bput ra?

  • @Tout-Le-Monde02
    @Tout-Le-Monde02 Год назад +1

    14:14 why are you sending all the other fields in your json request body, if you intend to only update the description field? That's why hibernate is generating update script for all the fields ...... and forcibly passing null as a json field value is not at all a good design principle ..... just don't include those fields in the json ...... weird logic ......

    • @Javatechie
      @Javatechie  Год назад

      If you won't pass those values then null will be updated in DB

    • @Tout-Le-Monde02
      @Tout-Le-Monde02 Год назад

      @@Javatechie No it doesn't.

    • @Javatechie
      @Javatechie  Год назад

      Please try once

  • @kambalavijay6800
    @kambalavijay6800 Год назад +2

    Everything is ok but 100 columns in table is too bad design to have. Ideally should not be referred to as an example.

    • @Javatechie
      @Javatechie  Год назад +2

      Just an example buddy 😊. We can keep more than 15 columns right 👍

    • @sudheerkumar-tp1mg
      @sudheerkumar-tp1mg Год назад

      100 columns are minimum in employee table

    • @sudheerkumar-tp1mg
      @sudheerkumar-tp1mg Год назад

      100 columns are minimum in employee table

  • @CheeseStickzZ
    @CheeseStickzZ Год назад +1

    This is a bad video because you didn't explain that using the dynamic annotations has a performance cost. In most cases it's better Performance to leave it out, it's only good when your entity has a large amount of fields that are large in length

  • @matusseidl
    @matusseidl Год назад +1

    @DynamicUpdate or @DynamicInsert has a performance overhead associated with it. Don't forget on it

    • @Javatechie
      @Javatechie  Год назад

      How buddy?

    • @matusseidl
      @matusseidl Год назад +1

      @@Javatechie Hibernate does not use the cached SQL statement for Dynamic Update or Insert which means every statement is generated and not pulled from the cache

    • @Javatechie
      @Javatechie  Год назад

      @@matusseidl yes if hibernate will use cached SQL statement then in single value update will trigger update for all the attribute/columns present in your entity right? This will eat a lot of time as well as memory

    • @matusseidl
      @matusseidl Год назад

      ​ @Java Techie maybe, it could be good video compare those scenarios. And yes if you have entity with many fields (columns) 20-30 and you just update one of them and that update isn't executing often I could use DynamicUpdate.

  • @mokashmokash9890
    @mokashmokash9890 Год назад

    Hi Bro,
    Create video on Debugging.
    I joined as experienced person but I'm facing some issue while debugging.. please create a video on Debugging,so it will all of us..

  • @mokashmokash9890
    @mokashmokash9890 Год назад

    Hi Bro,
    Create video on Debugging.
    I joined as experienced person but I'm facing some issue while debugging.. please create a video on Debugging,so it will all of us..