Clustered vs. Nonclustered Index Structures in SQL Server

  Рет қаралды 647,362

Voluntary DBA

Voluntary DBA

Күн бұрын

Clustered and nonclustered indexes share many of the same internal structures, but they're fundamentally different in nature. Watch Microsoft Certified IT Professional Jon Seigel explain the similarities and differences of clustered and nonclustered indexes, using a real-world example to show how these structures work to improve the performance of SQL queries.
Blog post on primary key vs. the clustered index:
voluntarydba.com/post/2012/10/...
CREATE INDEX statement reference:
technet.microsoft.com/en-us/li...
ALTER INDEX statement reference:
technet.microsoft.com/en-us/li...
Index navigation internals by example:
sqlblog.com/blogs/paul_white/a...
Sample index data is from the AdventureWorksLT2008R2 sample database:
awlt2008dbscript.codeplex.com/...
Visit my channel for more database administration videos:
/ voluntarydba
Subscribe to get notified about my latest videos:
kzfaq.info?...
Read additional content on my blog:
voluntarydba.com
Follow on Twitter:
/ voluntarydba
Like on Facebook:
/ voluntarydba

Пікірлер: 423
@nonam72
@nonam72 2 жыл бұрын
No nonsense talk or waste of time. Straight to the point with excellent presentation examples. Good Work. Thank you very much.
@abhiramm4941
@abhiramm4941 Жыл бұрын
It is hard to believe that this video is from 8 years ago. Still the best video explaining the basics of both these indexes even in 2022.
@ColonelStraker
@ColonelStraker 9 ай бұрын
Is it just me or did his eyebrows grow, during the course of this video and its edits?
@falxonPSN
@falxonPSN 2 жыл бұрын
This is one of the best videos on this topic out there. Keeps it simple, but still clearly explains the structures and how it works. Very nice work, sir!
@lorraineliu8422
@lorraineliu8422 5 жыл бұрын
I've watched over 10 video. This is by far the most clear structured introduction to indexes! Thank you!
@edwardsun4079
@edwardsun4079 9 жыл бұрын
Man, you fully rocked on demonstration the difference between Clustered Index and non-clustered Index ! This helps me on preparing for the interview questions !
@michaelgebreselassie99
@michaelgebreselassie99 8 жыл бұрын
I have been looking for different sources just to objectively understand the difference between clustered and non-clustered indexes and to know how they really work. This very short and precise video have put an end to all of my Qs. Thank you.
@Alstash
@Alstash Жыл бұрын
Elegant explanations like this are truly timeless, shifted through a bunch of videos attempting to word this same information in, like, double the time, and yet STILL failed to deliver as well as you did, sir, truly thank you.
@CorbinBohne
@CorbinBohne 4 жыл бұрын
I always come back to this video when I need a refresher and it never fails to help me. Thanks again!
@jonobaker
@jonobaker 6 жыл бұрын
This video helped me ALOT, I've been watching many videos and this really clearly cleaned things up for me. The moving graphics were a big part of that too. thankyou!
@vincewon8591
@vincewon8591 7 жыл бұрын
Thank you so much for posting this! I was having a hard time understanding the differences between the two until i watched the video.
@mike_yon
@mike_yon 6 жыл бұрын
This has been a great straightforward video that really helped explain the difference. Thank you keep up the good work!
@TheGothicSecret
@TheGothicSecret 9 жыл бұрын
Thank you for painting and diving deep in details of indexes!
@sharaf515
@sharaf515 8 жыл бұрын
Never before did Nicolas cage explain something so well, good job Nic. joking :D it was so helpful. thanks.
@VoluntaryDBA
@VoluntaryDBA 8 жыл бұрын
+Abd El-Rahman Ibn Omar lol
@diasneto5231
@diasneto5231 7 жыл бұрын
kkkkkkkkkkkkkk
@doumkatekz
@doumkatekz 6 жыл бұрын
And Nicolas Cage old has an odd sort of hottness. :)
@diananggriawanh8202
@diananggriawanh8202 5 жыл бұрын
HahhHahahah XD exactly
@learningearning8385
@learningearning8385 5 жыл бұрын
ha!!
@nkproductions742
@nkproductions742 4 жыл бұрын
Incredibly beautiful explanation of clustered and non-clustered indexes. There is a lot of material in those first 6 minutes, and I admit I had to pause several times to absorb it and move, but hey who is complaining when you get there eventually.
@camelCased
@camelCased 8 жыл бұрын
Thanks for the video, the phonebook example was good and easy to understand. From my experience, things sometimes get confusing because of different default behavior of different RDBMS - some automatically create clustered indexes for primary keys, some automatically create indexes on foreign keys, and some don't do any of this. So, sometimes you might get unpleasant surprises and performance issues if you have to deal with a RDBMS which you don't have experience with.
@MegaSmsm2011
@MegaSmsm2011 10 жыл бұрын
the best tutorial i have ever seen for MS SQL indexes, good job my friend
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
Thank you very much! I'm glad it helped you.
@jacksrensen4475
@jacksrensen4475 2 жыл бұрын
Very good explanation ;) My tutors have tried to explain clustering and indexing for me multiple times, without my understanding. But your examples and explanation of the differences really helped
@ashish7459
@ashish7459 9 жыл бұрын
Really amazing, I was not aware that we can define type of index while applying primary key or unique constraints. thanks for amazing explanation :)
@amaxamon
@amaxamon 3 жыл бұрын
I know this has been up for 6 years but THANK YOU!!!!
@danm2756
@danm2756 8 жыл бұрын
wow....best explanation. I'm studying for the mcsa exam. I've been struggling with this topic. thanks!!
@NatashaSalam
@NatashaSalam 8 жыл бұрын
Great video, thank you for creating this and explaining the concepts in a concise and visual manner.
@kezhan01
@kezhan01 8 жыл бұрын
Wow, I could not image a man can explain it in such a simple way! Thank you!
@ommi3756
@ommi3756 9 жыл бұрын
Never get this clear until this video. Nice!
@davewhelton4166
@davewhelton4166 5 күн бұрын
For 10 years, I've learned the definitions of both coz i just couldnt grasp what it actually meant but the 2nd time watching this video, you have finally made me understand
@glebski1531
@glebski1531 9 жыл бұрын
really awesome explanation of a concept that I come across every day that has perplexed me to date... thank you sir !
@serhankars
@serhankars 10 жыл бұрын
One of the best tutorials I've ever seen. Thank you so much. Brief and infomative. Animations are very helpful also.
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're welcome!
@mikedaniels755
@mikedaniels755 4 жыл бұрын
Perfectly concise and to the point. Well articulated and the visualizations help dramatically. Thank you very much for your contribution to the DATA world :)
@xphon12
@xphon12 3 жыл бұрын
Great explanation! This is the type of explanation that every developer can understand, no matter their programming level
@akashverma1640
@akashverma1640 Жыл бұрын
This is all I was looking for. Best explanation about behind the scenes of indexing.
@Devilfairy1
@Devilfairy1 6 жыл бұрын
Best indexing explanation I've seen on internet.
@srapdy6960
@srapdy6960 7 жыл бұрын
Excellent explanation. I don't think this can be described any better. Great visuals. Thank you so much
@TheJimboNJ
@TheJimboNJ 6 жыл бұрын
Thank you!! I particularly liked your examples and your methodical delivery of the information. I found the examples to be very helpful as well!
@ladhkay
@ladhkay 4 жыл бұрын
Most concise and easy to understand video out there. Thx man!
@radekou
@radekou 9 жыл бұрын
Wow, great explanation, love the usage of visualization of the data stored in structures. I've had an idea about how indexes work, but after watching this I'd be able to explain it to my grandmother (:
@Yousafkhan-gv7cs
@Yousafkhan-gv7cs 9 жыл бұрын
Very helpful especially the way you explain and display the concept.
@TijiMathewrjj
@TijiMathewrjj 7 жыл бұрын
Very well illustrated and explained thoroughly. Well done.
@akankshakaul744
@akankshakaul744 Жыл бұрын
Excellent video. Finally I could find a video which is so crisp and clear. Thanks a ton!!
@Akshay-Raut
@Akshay-Raut 7 жыл бұрын
its simple to understand with graphical representation. Keep up with them. Great work.
@ckeveny1
@ckeveny1 10 жыл бұрын
This is very useful. I now understand non-clustered indexes. Thank you
@tommccann3559
@tommccann3559 9 жыл бұрын
Bravo! That is most succinct explanation of clustered indexes I have ever read or seen. I've got it now :-)
@pradeepdesai9952
@pradeepdesai9952 9 жыл бұрын
Nicely put.. Specially graphical visual are the one which makes one understand much better .. .Thank you so much ...
@roidelalune01
@roidelalune01 9 жыл бұрын
Very consistent video. I hope you will add more on this topic. thank you very much
@tehawes0mesauce
@tehawes0mesauce 8 жыл бұрын
This video might save my advanced databases test grade tomorrow. I hate when the prof. doesn't explain stuff clearly enough for me. Thanks for the video - liked and subbed! :)
@js34lee
@js34lee 6 жыл бұрын
you have saved my life !!!!! genius explanation. I have been struggling to understand this for months after months
@Major_Mason
@Major_Mason 5 жыл бұрын
I am just starting to learn SQL. My dad is going to give me lessons, but this certainly helped me understand some of the terminology. I figured since I am already a Network Engineer who is two months away from his bachelor's degree, I want to make myself more valuable.
@indric
@indric 10 жыл бұрын
I understood more from this video than from a whole semester of lectures. Thanks!
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're very welcome! I'm glad it helped you understand these concepts.
@condemned8916
@condemned8916 7 жыл бұрын
Sir 5/5 for this video , the visualization was a gr8 help in understanding . I had some knowledge that B-tree was the index data structure but could not grasp it , but after your video it helped me a lot. Plz do post more such videos.
@RucuryBeans
@RucuryBeans 7 жыл бұрын
Very useful, thanks for making the video and explaining the concepts so well!
@ssaraswatipura
@ssaraswatipura 9 жыл бұрын
Awesome presentation, looking forward to watching more of your presentation.
@manasr3969
@manasr3969 7 ай бұрын
Excellent video. Much easier with visuals than reading articles. Keep up the good work.
@sathwicksv
@sathwicksv 4 жыл бұрын
Thank you very much, I have been reading at many places but no one explained with images. Greate video. Even MSDN documentation doesn't have this much information.
@imrana.8370
@imrana.8370 5 ай бұрын
I had a hard time understanding the difference until I watched your video. Thanks for the simple explanation!
@bobbysugianto5744
@bobbysugianto5744 5 жыл бұрын
what a brilliant explanation! subscribed! Looking further for your explanation about physical and logical operators in SQL Server and when is the best situation to use it (Nested loops, Hash Match, Merge Join, etc) Greetings from Indonesia!
@Vlfkfnejisjejrjtjrie
@Vlfkfnejisjejrjtjrie 7 жыл бұрын
great visual representation and model choice. subscribed!
@mallaiahsomula1714
@mallaiahsomula1714 4 жыл бұрын
Thank you so much, I never forget concept because of your visual representation. It made me to understand , very clearly
@ezequiel_code
@ezequiel_code 7 жыл бұрын
it can't be better explained, excelent work
@Jemmeh
@Jemmeh 9 жыл бұрын
Great video, very well put together and simplifies the topic well.
@AC-ft6mx
@AC-ft6mx 4 жыл бұрын
Never it was explained so well by others. Thank you !!!
@DownBeatTime
@DownBeatTime 5 жыл бұрын
The models you used were great! Thanks!
@pedropinto2192
@pedropinto2192 5 жыл бұрын
Very useful video! Your visual graphics made it very simple to understand. Thanks :)
@nareshnama343
@nareshnama343 6 жыл бұрын
Thank you ...very help full and wonderful demo..we are expecting to see more demos off SQL server from you..
@troop53no
@troop53no 2 ай бұрын
Thank you! I interact with a SQL database often, but indexes are not something I deal with enough. This was great information and exactly what I needed (:
@khaleda4873
@khaleda4873 3 жыл бұрын
You are so chill bro, thanks for the video.
@INvestYOU
@INvestYOU 10 жыл бұрын
Excellent demonstration.
@KanagaveluSugumar
@KanagaveluSugumar 9 жыл бұрын
Wow, Excellent content and animation. Thank you!!
@ArtemMikhaylov
@ArtemMikhaylov 7 жыл бұрын
Perfect explanation I've ever seen before! Please do not stop!
@peeyar2000
@peeyar2000 9 жыл бұрын
Great stuff about indexes.. Thanks for uploading.
@jaquesaulait
@jaquesaulait 6 жыл бұрын
Nice, clear delivery, good explanation. And he said "zed"! He speaks proper English..!
@kamalbalasubramanian621
@kamalbalasubramanian621 5 жыл бұрын
Best explanation with visuals. Kudos!!
@iainelder7607
@iainelder7607 10 жыл бұрын
Thanks, Jon. I liked the visual example of the phone book - helped me to understand how indexes work without getting bogged down in bytes and pointers.
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're very welcome! That's exactly what I was going for.
@user-ij2xw5qv6m
@user-ij2xw5qv6m 11 ай бұрын
Buena explicacion, estoy dando mis primeros pasos en SQL server, y tu explicación me aclaro muchas dudas
@georgesmith9178
@georgesmith9178 7 жыл бұрын
I liked the visualizations best. The phrase "a picture is worth a thousand words" definitely applies to this video. Thanks for the concise and well delivered video. And, please, ignore the "Nicolas Cage" references below.
@mehdizeynalov1062
@mehdizeynalov1062 Жыл бұрын
This man knows what he talks about - great. Waiting other videos.
@programmingbeasts4649
@programmingbeasts4649 4 жыл бұрын
The best explanation of the indexes in SQL thank you so much
@gauravbabbar9808
@gauravbabbar9808 6 жыл бұрын
Best explanation i have seen for this topic. Thumbs up man.
@pablocazares4521
@pablocazares4521 7 жыл бұрын
very good! much better then others I've watched
@csmanul
@csmanul 9 жыл бұрын
Thanks for explaining, i appreciate your effort.
@GhOnAu
@GhOnAu 9 ай бұрын
Great work, learned quite a lot about such a important topics in database the slides and visual explanation was piece of master piece
@mvmassoudi
@mvmassoudi 10 жыл бұрын
Very Professional, clear and informative; I also loved the video animations. Thank you
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're welcome!
@viveksingh100k
@viveksingh100k 8 жыл бұрын
Explained in very short time .. Thanks very much :)
@pjkumar5016
@pjkumar5016 5 ай бұрын
This is awesome, I referred lost video but this one really hits me. This is next level explanantion.
@ujjvalsharma5055
@ujjvalsharma5055 4 жыл бұрын
Great video on cluster and non-cluster index
@phani404
@phani404 6 жыл бұрын
Really helpful video with simple examples
@pradeepn6328
@pradeepn6328 7 жыл бұрын
Nice Video, The way he explaining is extraordinary
@brendaolson5912
@brendaolson5912 7 жыл бұрын
Very good explanation of the subject.. Thank you
@rajeshpednekar9317
@rajeshpednekar9317 5 жыл бұрын
Nice Simple explaination on Clustered Indexes and Non Clustered ..
@nasarazam
@nasarazam 9 жыл бұрын
Precise and very well explained.
@caginbektas
@caginbektas 5 жыл бұрын
That was so helpful. Thank you for the clear explanation.
@angelogramatica9967
@angelogramatica9967 8 жыл бұрын
Wow! Best explaining ever!
@tuanleanh6081
@tuanleanh6081 Жыл бұрын
Thank you so much for the super clear explaination!
@uskumart
@uskumart 10 жыл бұрын
Great information! Looking forward to get more from you!!
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
Thanks!
@Watch-N-reWatch
@Watch-N-reWatch 10 жыл бұрын
Thanks Voluntary.. This video was awesome.. I have been a years in Database but its first time I came to know what index is all about.. Thanks for your great example and way presentation.. U guys ROCK!
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're welcome!
@xiaoyi7538
@xiaoyi7538 3 жыл бұрын
Thank you so much ! You are amazing. Everything is explained so organized
@michaelkennedy5126
@michaelkennedy5126 6 ай бұрын
Thanks friend, that was a clear and concise explanation with excellent graphics.
@mohsenhs
@mohsenhs 7 жыл бұрын
Awesome tutorial, Visualised and explained well, Fantastic, Many thanks
@reinersitanggang
@reinersitanggang 8 жыл бұрын
A lot wannabe blogs explained it with much much worse example, even a lot that even do not define from the scanning process through accumulate the results. Nice vid!
@TechnoQuark
@TechnoQuark 3 жыл бұрын
Excellent and to the point .... Great Job mate
@AlphaWatt
@AlphaWatt 5 жыл бұрын
Excellent explanation. This truly helped.
@williamchin-fook8097
@williamchin-fook8097 7 жыл бұрын
Great Explanation and analogy about clustered-indexes 5 star!
@naveenkumar7262
@naveenkumar7262 10 жыл бұрын
Thanks for this nice video. It was short, simple and easy to understand. Thanks again!!
@VoluntaryDBA
@VoluntaryDBA 10 жыл бұрын
You're very welcome! Thanks for watching.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 46 М.
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 45 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 1,3 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 57 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 58 МЛН
Why I Quit the Scrum Alliance
7:58
The Passionate Programmer
Рет қаралды 12 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 730 М.
Azure SQL Database: Columnstore indexes | Azure Friday
16:39
Microsoft Azure
Рет қаралды 8 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 1,8 МЛН
SQL Indexes - Definition, Examples, and Tips
12:14
Database Star
Рет қаралды 71 М.
SQL vs NoSQL or MySQL vs MongoDB
21:30
Academind
Рет қаралды 1,8 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,2 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 605 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 8 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 29 МЛН