Key lookup and RID lookup in sql server execution plans

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • Key lookup vs RID lookup | Key lookup sql server | RID lookup in sql server execution plan | Key lookup in sql server execution plan | Key lookup clustered index
    Notes and Slides
    www.pragimtech.com/blog/sql-o...
    How SQL Indexes Work
    • How do SQL Indexes Work
    What is a Heap Table
    • What is heap table | F...
    SQL Server Tutorial for beginners
    • SQL Server tutorial fo...
    SQL Server Interview Questions and Answers
    • SQL Server Interview Q...
    SQL Server Performance Tuning and Query Optimization
    • SQL Server Performance...
    SQL Server Blog
    www.pragimtech.com/courses/sq...
  • Věda a technologie

Komentáře • 77

  • @ashajyothi06
    @ashajyothi06 Před 3 lety +14

    Mr.kudvenkat is a super hero😎

  • @sarfarazmakandar4684
    @sarfarazmakandar4684 Před 2 lety +9

    I will pray for you in my whole life whenever I write index. Huge respect sir, can't explain what you have given to me.

  • @sanchitvaid7017
    @sanchitvaid7017 Před rokem +7

    I did multiple certifications on SQL from reputed online learning platforms and even bought advance SQL courses on Udemy but even they do not teach these things. Hats off to you, it's because of your videos I go super confident in my interviews now.

  • @ninaddesai8846
    @ninaddesai8846 Před 2 lety +2

    You are best sir.
    Completely different level of teaching.
    I have watched all your SQL videos.
    And got a good job.👏👏👏👌👌👌

  • @shuvo9131
    @shuvo9131 Před 3 lety +3

    you are the best Venkat. I am loving this series, waiting for the next one bro

  • @adorebeauty6539
    @adorebeauty6539 Před 3 lety +9

    Sir, please make video on INCLUDE(columns) along with non clustered index and why we don ot use it on clustered index. That is very important operation while optimizing query cuz large description(nvarchar(max)) colums slows down non clustered indexes too when they are in the select

  • @mgstar6041
    @mgstar6041 Před 3 lety +2

    I would like to thank you for all the effort I have learned so much from you.

  • @shahabhaidar
    @shahabhaidar Před 3 lety +1

    This is the best explanation I've ever seen. Thanks a ton Sir.
    Requesting you to kindly complete the series for SQL Server Performance Tuning Videos

  • @linsfunbox4052
    @linsfunbox4052 Před 2 lety

    I love this video. Thank you so much! In fact, a lot of BI developers don't event know what RID lookup, Key lookup and parameter sniffing are.

  • @georget10i
    @georget10i Před 3 lety

    Excellent explanation. Thank you for creating and sharing these great videos with the world! I also like length of the videos. 5-7 minutes is perfect.

  • @kalaicompute
    @kalaicompute Před 3 lety

    Excellent explanation of these key concepts of sql server indexes and analyzing query execution plans. I am looking for more videos about other query plans such as nested lookups.

  • @dhirajkr3758
    @dhirajkr3758 Před 3 lety

    Thanks Venkat for valuable information in simple way. I love and learned. Keep making valuable videos.

  • @ravichandraak8727
    @ravichandraak8727 Před 3 lety

    Super expert in explaining the tutorial to beginners keep it up and keep going venkat appreciate your efforts 👍

  • @sravankumar1767
    @sravankumar1767 Před 3 lety

    Nice Explanation Venkat ,Thanks For come Back with New Topics....

  • @vishaljhaveri7565
    @vishaljhaveri7565 Před 6 měsíci

    Thank you so much, Sir. The Perforformance Tuning Playlist is amazing. Really learnt a lot, appreciate your efforts.

  • @elainemayer8978
    @elainemayer8978 Před 2 lety

    This is a great demo. Truly enjoyed your video.

  • @TheUjjwalpandey
    @TheUjjwalpandey Před 2 měsíci

    Appreciate your quality content. Thanks

  • @kithiyongideon1629
    @kithiyongideon1629 Před 2 lety

    Really Great! Thank you! God will bless you more because you are helping all.

  • @adityasethi9794
    @adityasethi9794 Před 2 lety +1

    when we don't provide a clustered index. RID lookup happens because the engine by default creates a RID for all rows and stores them by increasing order of RID. But if we have clustered index on Id, then data is already stored in increasing order of id. Now key lookup happens. Key point is that, lookup has to happen on ordered data. RID/KEY fulfills the same purpose.

  • @ayushisingh2139
    @ayushisingh2139 Před rokem

    Hi Sir, I have been waiting for more videos of yours on this playlist.

  • @sltrains
    @sltrains Před rokem

    Very good video series. Thanks a lot.

  • @mosespeter9711
    @mosespeter9711 Před rokem

    Thanks so much for the break down!

  • @veerandarla9147
    @veerandarla9147 Před 3 lety

    I really enjoying while watching your videos Excellent

  • @sagarverma1250
    @sagarverma1250 Před 3 lety

    Next level. You are superb sir.

  • @CK-bu5wh
    @CK-bu5wh Před 11 měsíci +2

    Hi Kudvenkat, I wonder if this series will be continued? or if the continued series is moved to other platform because I found your tutorial is very easy to understand and very helpful. Will looking for buy a online course regarding this topic if you're going to publish one

  • @hiphen2263
    @hiphen2263 Před 3 lety

    another best serie turtorial thank you , you are my best teacher

  • @kssrikanth7905
    @kssrikanth7905 Před 2 lety

    very easy to learn. Learnt a lot from your videos.

  • @jasonngan5747
    @jasonngan5747 Před rokem +1

    Hi Venkat, thanks for the great content! Can I clarify with you, if there's no clustered index key, how does SQL do a row ID look up? Since the heap is not sorted in any particular order, when doing a row ID look up, does it imply a full table scan?

  • @dp-bhatt
    @dp-bhatt Před 2 lety

    Excellent videos. Thank you so much.

  • @harshitsrivastava9738
    @harshitsrivastava9738 Před 3 lety

    What an explanation you are such an inspiration sir, today all my doubts are clear. Thank you

  • @ameysaitavdekar4102
    @ameysaitavdekar4102 Před 3 lety

    Thanks a Ton Venkat Sir.

  • @CharlieBrown0507
    @CharlieBrown0507 Před 3 lety

    Nicely explained. Thank you

  • @ajay_jangra
    @ajay_jangra Před 3 lety

    Thank you sir for everything 🙏

  • @swathivasireddy1601
    @swathivasireddy1601 Před 3 lety

    Thank you so much your vedios are very helpful than any other vedios

  • @gagandeepsingh6126
    @gagandeepsingh6126 Před 3 lety +5

    Hi Kudvenkat,
    I've been waiting for your series on SQL Server performance tuning for a long time. And you are doing awesome work on this. Please try to make this series for each physical operator of the execution plan and explain the reason behind them and what changes on SQL queries can avoid these heavy operators.

  • @kenji2787
    @kenji2787 Před 3 lety

    This is very nice. Can you create a video with composite index? Like how the data is seek/scan when you have composite index on (col1, col2) but you’re only searching by col2.

  • @siddardhasam820
    @siddardhasam820 Před 2 lety

    Please do continue to post more videos.

  • @gauravtiwari6392
    @gauravtiwari6392 Před 3 měsíci

    Hello Venkat,
    Nice videos you have in all your playlists.
    I have a little confusion though.
    Like you explained that data rows get stored in leaf nodes in Clustered index, where do actual data rows get stored in Non clustered index ? All I see are row locators on leaf nodes which I am guessing are row ID based on which RID lookups get created. Also need little elaboration on key values.
    Thanks.

  • @TechandArt
    @TechandArt Před 3 lety

    Good explanation 👍

  • @blackisblack22
    @blackisblack22 Před rokem

    Is it a good practice to include the pk value in the section INCLUDE of a nonclustered index? Sometimes we want to know which is the table’s id for a certain indexed column and to avoid a key lookup we could read it from the index itself, is it a good idea?

  • @abdogebril3525
    @abdogebril3525 Před 3 lety +2

    You are an awe-inspiring🤗
    Can you teach us how to analyze a system and convert requirements to ERD 🌟 or anyone recommend me any source to understand this topic well.

  • @avinashbhalke4653
    @avinashbhalke4653 Před 3 lety

    Hi,
    Please help with difference between In and Exists. And its impact on performance

  • @karthikg108
    @karthikg108 Před rokem

    Hello Sir, Thank you for the detailed explanation. Quick query, please?
    The non-clustered index has been created based on the "Name" column only. How is the RowId column been stored in the index as a key-value pair, please? The RowId column is not even a column in the table. Also, this is table doesn't have a Primary Key column defined, then how does the RowId column has been stored in the non-clustered index, please?
    Could we expect more videos related to SQL Queries tuning, please?

  • @mohamedasem6523
    @mohamedasem6523 Před 8 měsíci

    we hope you can continue this playlist

  • @ramamohankota007
    @ramamohankota007 Před rokem

    really super bro

  • @OmkarNandgaonkar
    @OmkarNandgaonkar Před 2 měsíci

    The best!

  • @vinish.maurya
    @vinish.maurya Před 3 lety

    Hi sir,
    We are waiting for partition table concept in sql query performance.
    Thanks you sir

  • @ankuranandwc
    @ankuranandwc Před 2 lety +1

    HI SIR, ARE WE GOING TO HAVE MORE VIDEOS ON THIS SERIES, LOOKING FORWARD TO SOME EXCELLENT QUALITY CONTENT FROM YOUR SIDE

  • @ThanhPhamTien-vr4gf
    @ThanhPhamTien-vr4gf Před 4 měsíci

    I have question: if we only use nonclustered-index , then data is not sorted in the leaf node, then we use RID to look up , do we have to go to each page to know which data row in which page is equal to the RID that we use in the index tree ?

  • @piraviperumal2544
    @piraviperumal2544 Před 3 lety

    Awesome !!

  • @justvenkyy...3423
    @justvenkyy...3423 Před 3 lety

    can you post on sql sharding and partitioning difference

  • @cuteiffatfatima
    @cuteiffatfatima Před 3 lety

    I am waiting for more videos of optimization

  • @murugesankgm1297
    @murugesankgm1297 Před 3 lety

    Very nice

  • @nehakesari7190
    @nehakesari7190 Před 3 lety +2

    This mean for small table we don't have to worry sql engine will handle by its own.

  • @umerwaqas5943
    @umerwaqas5943 Před 3 lety

    Thanks sir

  • @satyamahesh89
    @satyamahesh89 Před 3 lety

    Wow 😍

  • @nareshbuddy9522
    @nareshbuddy9522 Před 3 lety

    Hi Bro Please help us on How to get a best execution plan

  • @jitendrarankawat9803
    @jitendrarankawat9803 Před 3 lety

    nice and great

  • @ypwygk652
    @ypwygk652 Před 2 lety

    I can not show the green text of the missing index .. any one can help?

  • @akashagarwal6390
    @akashagarwal6390 Před rokem

    why explicitly create a new clustered index on the PK?

  • @viveksingh-xl2ut
    @viveksingh-xl2ut Před rokem

    Sir Please Please Make series for SQL Server performance tuning ! we are obliged to you

  • @LuigiZambetti
    @LuigiZambetti Před 3 lety

    Venkat why don't you update your excellent playlist on C# to reflect the updates for version 9.0 of the language?

  • @karthik1090
    @karthik1090 Před 3 lety +2

    So the RID is kind of like a primary key which is internally created by sql server for indexing purposes only as there is no primary key given by the user in the table, Right?.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 3 lety +1

      Absolutely. Spot on. It would have been good if I mentioned this. Thank you. You summarised it really well. Thank you for sharing.

    • @karthik1090
      @karthik1090 Před 3 lety +2

      @@Csharp-video-tutorialsBlogspot if you could do some videos explaining about what is table partitioning and how it is done, that would be really helpful.

    • @vinish.maurya
      @vinish.maurya Před 3 lety

      @@karthik1090 yes I am also waiting

  • @dreamvallyhasan4807
    @dreamvallyhasan4807 Před 3 lety

    Sir please upload crystal report and report viewer series.. Thanks a lot

  • @agrim8863
    @agrim8863 Před 3 lety

    Hi, Venkat I have registered for few courses on your website but none of courses have been started yet. I even dropped a mail regarding the same but no response from your end.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 3 lety +1

      Hello YIC - Very sorry, there are just too many emails and did not get time to get to them yet. Sorry, did not mean to ignore. Thank you for understanding. Can you please share the course page URL here and I will be able to help. Hope you are finding our videos useful.

  • @Kalpesh812
    @Kalpesh812 Před 2 lety

    🙏

  • @epuriraghavendra3847
    @epuriraghavendra3847 Před 11 měsíci

    please explain column store index

  • @alankarsrivastava5328
    @alankarsrivastava5328 Před 3 lety

    waiting for Execution plan video

  • @s.ifreecoachinginstitute0077

    nice video

  • @satishk4u
    @satishk4u Před 2 lety

    🙏