SQL performance tuning and query optimization using execution plan

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

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

  • @mohammedminhajulhaq5542
    @mohammedminhajulhaq5542 3 года назад +28

    We need to share this kind of videos to maximum people. This is much underrated in terms of views. A lot to learn from this video. Thank you sooo much for keeping it simple and understandable. We can't get this much of advise and knowledge after paying also. Attended some pluralsite videos of some SQL experts but didn't understand a bit but in this 1 video got so much of information. Thanks a ton once again. Keep it up good work 👍👍👍👍

    • @techsapphire
      @techsapphire  3 года назад +5

      Thanks. Note:
      I also provide commercial support. Please contact if needed.
      If you find this solution helpful than donate comfortable amount on papal to my email ID or link www.paypal.me/bimlamehla.
      Donation is not mandatory is it just request to support free tutorial.

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

      @@techsapphire can we have your contact number or whatsapp number/ email id

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

    This is by far the best SQL query optimization videos I've watched! I'm going to share this with everyone I know who can benefit from this. Thanks @techsapphire 🙌🏽

  • @srinubathina9096
    @srinubathina9096 4 года назад +9

    This is the best class in terms of SQL Performance Tuning. Thank You..

  • @palashmondal9088
    @palashmondal9088 4 года назад +2

    I asked to optimize query by product owner after that start watching your video, it help me a lot. Thank you so much!!

  • @dbamentorparag
    @dbamentorparag 5 месяцев назад +5

    I am in Adelaide Australia and watching your video

    • @techsapphire
      @techsapphire  5 месяцев назад +1

      awesome :) nice to see you here in comment as well.

  • @prabasmessi
    @prabasmessi 10 месяцев назад

    Thank you so much for sharing the knowledge. Best explanation for query optimization i have seen till now.

  • @mithunraj31
    @mithunraj31 3 года назад +1

    Really this is one of the BEST video ever, so easy to understand. Very very very helpful. Thanks a lot for this brilliant one.

  • @venkatasumanbhavanasi6939
    @venkatasumanbhavanasi6939 4 года назад +4

    Hi yogesh, this is really helpful for developers who donno the concepts and tricks to optimize queries and simply writing the queries as their own which makes client in bad situation. This video helped me alot. Thank you..

  • @mrkamranumer
    @mrkamranumer 2 года назад

    Wonderful and Excellent Knowledge based in-depth Performance Tuning Video

  • @Penjarlamahesh
    @Penjarlamahesh 5 месяцев назад +1

    Excellent teaching skill, your explanation is very clear and very easy to understand ❤

  • @kaustubhpradhan82
    @kaustubhpradhan82 4 года назад +4

    Extremely helpful. Searched a lot for help and video stands out to be unique. Thank you. :-)

  • @nitsz07
    @nitsz07 2 года назад

    Thanks! Thanks a lot Yogesh for your time and efforts in this particular video. This helped me a lot..

  • @dattakashiwale
    @dattakashiwale 2 года назад

    Excellent ! outstanding video., most of the concept were unknown.., really helped a lot., thanks a lot Bhai.., pls create more stuff like this..,

  • @maruthibachu8854
    @maruthibachu8854 2 года назад

    Really its awesome.. Its helped lot and easy to understand.. please make more videos. thank you

  • @DIZS_PVT_LTD
    @DIZS_PVT_LTD 2 года назад

    Very Good Lecture gives me so much clarity.

  • @satheeshkandukurii5251
    @satheeshkandukurii5251 5 лет назад +6

    Really awesome...pls do more videos on performance tuning

  • @jagjeetrathore9122
    @jagjeetrathore9122 5 лет назад +2

    i watched many videos , found this one awesome for beginners

  • @DineshArya-n9l
    @DineshArya-n9l 11 месяцев назад

    Amazing tutorial on query tuning... thanks a lot

  • @jaredlising-simplybrewedph
    @jaredlising-simplybrewedph 2 года назад +2

    Thank you so much for such detailed explanation! Appreciate it so much! 😊

  • @shreyadutta5817
    @shreyadutta5817 2 года назад

    Very informative... Brilliantly explained

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

    Insanely good video. Helped for my DE interview

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

      Glad it helped! I provide training as well.

  • @deebanm124
    @deebanm124 Месяц назад

    Thank you for this video. This is very helpful and it helps me to understand how the execution plan work. I need a scripts.

    • @techsapphire
      @techsapphire  28 дней назад

      You can find the scripts in the video description.

  • @kaushikkrishnan5828
    @kaushikkrishnan5828 3 года назад +1

    Amazing, super helpful to get a direction on how to go about optimizing queries

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

    This is just amazing, going to share with all mates.

  • @devarakondasankararao3802
    @devarakondasankararao3802 2 года назад

    Very excellent video .Thank you so much for this explanation.

  • @ashwineemehta9449
    @ashwineemehta9449 2 года назад

    I went though this video and found it very useful.

  • @parixitsinhchauhan5186
    @parixitsinhchauhan5186 2 года назад

    nicely explained every topic. Good Video

  • @Sk8erBhai
    @Sk8erBhai 2 года назад

    Great video, brother. Have learnt so much so quick

  • @vijayalakshmibadigeru4479
    @vijayalakshmibadigeru4479 2 года назад

    Really great video... We look forward to learn more ✌️

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

    Excellent performance tuning tutorial

  • @nandiniguntur4509
    @nandiniguntur4509 2 года назад

    Good job. The explanation is very succint

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

    this is best video for performance tuning

  • @kuldeepsharma3822
    @kuldeepsharma3822 2 месяца назад

    Bro ek no.. explained very well ...

    • @techsapphire
      @techsapphire  20 дней назад

      Nice to hear that, I will be uploading more videos on similar topics.

  • @karthikkeyan4460
    @karthikkeyan4460 3 года назад +10

    Timstamps for various topics covered..
    18:21 Hashmatch
    23:54 KeyLookup

  • @ganeshvarma370
    @ganeshvarma370 3 года назад

    Learned So much, Keep doing more videos. Respect++

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

    very explained Sir, Thank you for the video.

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

      Glad it helped

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

      I watched your video might be 4th or 5th time today, N every time I learn something new n brings my knowledge to next level..Very well explained sir. Keep Sharing such a live scenario n knowledge..This helped me lot..lots of love sir #bow ❤❤❤❤

  • @saikumarramisetty
    @saikumarramisetty 5 лет назад +1

    Thank you so much for the awesome video, I got a clear idea about the Performance tuning

  • @DD-dp6ge
    @DD-dp6ge Год назад

    Amazing, very well explained, thanks!

  • @saurabhashok2857
    @saurabhashok2857 2 года назад

    Simply outstanding explanation. Thanks!

  • @ravindark646
    @ravindark646 4 года назад

    Nice explanation and got clear Idea on the such things. Thanks :)

  • @mahaalsalman2323
    @mahaalsalman2323 4 года назад

    Thank you for good teaching you explained it very clearly

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

    Excellent session Sir!!

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

    Thanks for your detail explanation

  • @priyankasarkar6600
    @priyankasarkar6600 4 года назад +5

    Awesome Sir..:) On point tutorial! Please make more videos on triggers, cluster, cursor.. Thanks in advance..:)

  • @srikanthkurra9513
    @srikanthkurra9513 2 года назад

    Thanks for the complete explanation

  • @calvinball1
    @calvinball1 3 года назад

    This is an astoundingly good video

  • @ManishPurohit-gl6lq
    @ManishPurohit-gl6lq 2 года назад

    It's a brilliant explanation.

  • @dbatexas
    @dbatexas 4 года назад +1

    thanks for details, video could be more in depth like why nested loop join vs hash join, what is lazy pool or eager spool/spills. but other than all good concepts and topics. it takes times to explain all details so we could give links for people to learn like nested loop runtime is O(n2) Vs merge join O(nLogN) etc etc

    • @techsapphire
      @techsapphire  4 года назад +2

      Thank you for your feedback. Reason why I haven't covered details about latches and waits and why nested loops, etc is, mostly I make video for intermediate learner to expert level. And if I add these stuff, video become confusing for them, I tried to cover in best lehman terms. But I agree for some viewer details make more sense, but mostly people I train are not good with basics so, difficult to bring them in same page.

  • @pravaspatra3849
    @pravaspatra3849 5 лет назад

    Its very helpful. Please share more videos

  • @P5toraskar1986
    @P5toraskar1986 3 года назад

    Superb information.

  • @erashusri
    @erashusri 3 года назад

    Thank you very much for all your effort.

  • @poojagarg5673
    @poojagarg5673 2 года назад +2

    Thanks a lot for sharing this video, it's very informative and helped me understand many concepts.
    Right now, I am looking at a complex query plan which is timing out(query) pretty often. That execution plan has many operations like Index seek (NonClusered), Clustered Index Scan, Clustered Index Seek etc. Please explain these terms as well. These are quite confusing when reading the definition of these.

    • @techsapphire
      @techsapphire  2 года назад

      I provide 1 to 1 session which comes up with a fee to clear your all doubts, if you are interested kindly reach me on yogesh.mehla@gmail.com

  • @sandeepkumar-ol5lg
    @sandeepkumar-ol5lg 2 года назад

    Great content, as you mentioned it’s one out of two parts, could you please comment the second video link here

    • @techsapphire
      @techsapphire  2 года назад

      Post this video, there are many videos on how to capture expensive queries etc. You can check

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

    have you used sql sentry plan explorer? what is your opinion about it. I find it really facinating. I wish they had more vidoes on that.

  • @darrylw99
    @darrylw99 4 месяца назад

    where did you get the extra tables in your Northwind, mine only has 9 tables

  • @labs_with_om
    @labs_with_om 8 месяцев назад

    Awesome, just below excellent,

  • @010_it_daithiyasudanks3
    @010_it_daithiyasudanks3 9 месяцев назад

    I am trying to reproduce the same steps in my machine. I am not able to find Student table under Northwind database. Can you please where I can find the scripts for that? This video is starting to be very useful for me.

  • @waqarbaig1402
    @waqarbaig1402 5 лет назад

    this is realy good picture of optimization .. also please add sql profiler in terms of optmization

    • @techsapphire
      @techsapphire  5 лет назад

      Thank you for your feedback. I will add session on sql profiler too.

  • @niha46
    @niha46 4 года назад

    nice explanation, very helpful.

  • @yogisawant9891
    @yogisawant9891 2 года назад

    Nice video. Thank you sir

  • @anuragjains2195
    @anuragjains2195 5 лет назад

    Nicely explained. Thank you very much!

  • @SandeepYadav-vm5hd
    @SandeepYadav-vm5hd 3 года назад

    Amazing Video Very useful !!!

  • @codearabawy
    @codearabawy 3 года назад

    That's awesome, thank you very much!

  • @Shad0wMonkey5
    @Shad0wMonkey5 2 года назад

    This was such a good video I’m shocked ahahaha! Do you have any more optimisation tips and how diagnosing slow queries?

    • @techsapphire
      @techsapphire  2 года назад

      Yes I do! Alot are on my channel kindly check, I also provide commercial sessions

  • @NareshDama-qv3iu
    @NareshDama-qv3iu 5 лет назад

    Very useful information.. thank you so much!!

  • @kaushikbudi8819
    @kaushikbudi8819 2 года назад +1

    Hello Sir great video just had a small doubt how would the performance be if we used last value for the example problem for minimizing sub queries

    • @techsapphire
      @techsapphire  2 года назад +1

      single query will not have major impact, its important to have most of the queries to be optimized to ensure good performance

  • @pavankumarcheruvu8207
    @pavankumarcheruvu8207 2 года назад

    Hi sir,
    It was nice video. I have one doubt while explaining you're telling everytime about sql server but I'm not using sql server in my project I'm using sql developer tool and I'm working as sql developer, So it is same for all ?
    Please reply me.

    • @techsapphire
      @techsapphire  2 года назад

      Yes, correct. Performance optimization using query tuning is mainly job of SQL Dev not DBA

  • @Latif127
    @Latif127 4 года назад

    Very helpful tutorial, thank you.

  • @yashpatil2536
    @yashpatil2536 2 года назад

    Amazing Thank you so much!

  • @karanrewari6482
    @karanrewari6482 4 года назад

    amazing video!! very helpful, thanks!

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

    Is this query tuning applicable to oracle database as well?

  • @anonymous8633
    @anonymous8633 3 года назад

    how to avoid key lookup when PK_clusteredIndex seek is in the exec. plan? I know if, non clustered on exec. plan, I can add those columns to the index but what to do with key lookup and PK_seek?

    • @techsapphire
      @techsapphire  3 года назад

      lookup are tricky to fix, depends on your instinct to fix them as they can cause more locks for insert delete and update if you add more columns

  • @dinsharma1409
    @dinsharma1409 3 года назад

    What version is the NorthWind database? Mine doesn't have the 'Student' column. Would you please paste the URL here to get the same Database you have on your presentation?

    • @techsapphire
      @techsapphire  3 года назад

      follow link in description for database backup

    • @dinsharma1409
      @dinsharma1409 3 года назад

      @@techsapphire Where is the link?

  • @dishaverma3522
    @dishaverma3522 2 года назад

    Thanks allot it's really helpful

  • @ranjitreddy6316
    @ranjitreddy6316 4 года назад

    Thanks Much For this video! Really appreciate it! :)

  • @jegadeesr7213
    @jegadeesr7213 3 года назад +1

    While
    optimizing T-SQL Queries, in the logical query execution plan, what are the top
    3 operators which we should eliminate / optimize?

    • @techsapphire
      @techsapphire  3 года назад +2

      Lazy spool one and only other are more dependent on situation

  • @sid5201
    @sid5201 5 лет назад +1

    Hash Join is not always bad, especially dealing with very large tables.

    • @techsapphire
      @techsapphire  5 лет назад +2

      There is no term like always bad. It depends, if you are joining complex views, you may not be able to avoid hash join. So SQL decision is good, we have to form are query accordingly.

    • @sid5201
      @sid5201 5 лет назад

      @@techsapphire agree

  • @Jogukrish
    @Jogukrish 4 года назад

    outstanding Sir

  • @kjkanishk7575
    @kjkanishk7575 3 года назад

    thanks ... :) ... really great presentation.

  • @bharath.vkumar5941
    @bharath.vkumar5941 3 года назад

    really like this video........may get any suggestions currently, i working for my thesis on the topic of RESEARCH ON AI APPLICATION FOR OPTIMIZATION OF THE SQL QUERIES..

    • @techsapphire
      @techsapphire  3 года назад

      Is your research only SQL Server or other databases as well?

  • @ManOfAdventure2011
    @ManOfAdventure2011 2 года назад

    Great tutorial! I learned a lot!

  • @kiran3243
    @kiran3243 3 года назад

    nice video sir

  • @PrakashPatil-dw5be
    @PrakashPatil-dw5be 4 года назад

    I have a table with more than 100 columns, so how many indexes can create for a single table?

    • @techsapphire
      @techsapphire  4 года назад

      there is no hard rule for it, depends upon you infrastructure and also sql version. Enterprise can go manage crazy load of indexes. Index should be created sensibly.

  • @RajeshKumar-nc5gg
    @RajeshKumar-nc5gg 2 года назад

    Very very nice

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

    Thank you, can you please share this ppt and example queries.

  • @amiya217
    @amiya217 4 года назад

    good explanation..

  • @rainmaker168
    @rainmaker168 Месяц назад

    Thanks.
    Please share the init db script for Student Table.

  • @aloksinha6342
    @aloksinha6342 5 лет назад

    Very nice explanation.One of the best.Could you please share the scripts also..

  • @el-mehdichouki6355
    @el-mehdichouki6355 3 года назад +2

    Hello Yogesh sir, Can we get the ppt, DB and the scripts ? Thanks. I learned a lot from this video.

  • @nilamsherkar
    @nilamsherkar 11 месяцев назад

    can i get this database to practice the questions

  • @munukuntlaprashanth4918
    @munukuntlaprashanth4918 3 года назад

    Hi, I am having issue with stored procedure as it is taking huge time.. Can you please help me

  • @martinhedmanjohnson6687
    @martinhedmanjohnson6687 4 года назад

    Hi Yogesh, at one point you mention "group before, not after" what do yuo mean by that?

    • @techsapphire
      @techsapphire  4 года назад

      I am confused about reference, if you want to discuss in detail, kindly reach me on skype yogesh.mehla@live.com

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

    from where i can get the data ?

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

      kindly mail me at yogesh.mehla@gmail.com

  • @Firatayrilik
    @Firatayrilik 3 года назад +1

    Hello. Thanks for the video. What exactly 'Double Aggregation' means? I mean I only see one aggregation query which is MAX in first query and also in the second. Can you please explain?

    • @techsapphire
      @techsapphire  3 года назад +1

      it is duplicate aggregation, not double aggregation. Kindly re refer video again

  • @PrakashPatil-dw5be
    @PrakashPatil-dw5be 4 года назад

    good information...

  • @mallikarjuna9209
    @mallikarjuna9209 2 года назад

    to the point. Thank you sir!!!!!

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

    How to set statistics io,time on in mysql

  • @krishnakumargupta741
    @krishnakumargupta741 4 года назад

    thx you sir very nice video

  • @rajeshchittiprolu5281
    @rajeshchittiprolu5281 4 года назад

    short and sweet. Well explained brother. Would you mind sending me the presentation.

  • @Fairplay2015
    @Fairplay2015 5 месяцев назад

    Great 🙏🏼