Тёмный

SQL Index |¦| Indexes in SQL |¦| Database Index 

Socratica
Подписаться 880 тыс.
Просмотров 602 тыс.
50% 1

Indexes in SQL are used to speed up SQL queries. A database index works much like an index in a book. For example, if you have a database table with a list of people, a common query would be to lookup someone by name. Creating an index means the database will not have to scan the entire table looking for matches. Instead, it will restrict its search to a small portion of the rows.
In this video we use a table with 100 million rows to illustrate how much an index can change the speed of a query.
Our SQL playlist starts here:
↪bit.ly/Socratica_SQL
Be sure to SUBSCRIBE for more SQL!
↪ bit.ly/SocraticaSubscribe
You may also enjoy our Python playlist:
↪bit.ly/PythonSocratica
♦♦♦♦♦♦♦♦♦♦
Ways to support our channel:
► Join our Patreon : / socratica
► Make a one-time PayPal donation: www.paypal.me/socratica
► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
Thank you!
♦♦♦♦♦♦♦♦♦♦
Connect with us!
Facebook: / socraticastudios
Instagram: / socraticastudios
Twitter: / socratica
♦♦♦♦♦♦♦♦♦♦
SQL instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Kimberly Hatch Harrison (@khhsocratica) & Michael Harrison (@mlh496)
♦♦♦♦♦♦♦♦♦♦

Опубликовано:

 

17 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1 тыс.   
@Socratica
@Socratica 4 года назад
It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉
@papunmohanty5968
@papunmohanty5968 4 года назад
Thanks for all great videos... Your explanations are simple and awesome :)
@setudutta3905
@setudutta3905 4 года назад
You guys are amazing, the quality of videos and the actress in the video is at par with a professional TV show or a movie. Excellent explanation as well !!!
@philpeko1796
@philpeko1796 4 года назад
😱👍⚡Socratica, you nailed it! This is the SQL course I recommend every day to SQL beginners. 🎇💥🎆🖐👍🖖🤘
@maheshtambe9535
@maheshtambe9535 3 года назад
Wish you the best. You are awesome.
@mohammadsohelkhan7996
@mohammadsohelkhan7996 3 года назад
Please continue SQL video series with more SQL concepts. Big fan :)
@robertl30
@robertl30 5 лет назад
I thoroughly enjoyed the 596,000 ms spent watching this video.
@enamh89
@enamh89 3 года назад
The hardship is impossible to put into words...
@unjordi
@unjordi 2 года назад
But it lasts over 900000!
@mcmaddie
@mcmaddie 2 года назад
You might want to re-check that.
@ahmeda8201
@ahmeda8201 2 года назад
956,000 ms i guess
@thisisgangadhar
@thisisgangadhar 2 года назад
@@ahmeda8201 nope 596000k
@microsteps211
@microsteps211 3 года назад
She deserves an Emmy's for the quality content production. Fantastic scripts, visual and sound effects, and best actress. Love the (7-min) interlude of classical music, hilarious you. Totally loving this! Thank you Socratica, you really are awesome and indispensable!
@hadibq
@hadibq Год назад
Same here about the 7min 😄
@caio-jl6qw
@caio-jl6qw 10 месяцев назад
Totally agree... I just love the contents this channel puts out
@nwokolobueze7291
@nwokolobueze7291 2 месяца назад
what was the name of the prelude, shazam could not find it.
@TheJupiteL
@TheJupiteL 3 года назад
Maaan, I graduated college 3 years ago, learning from all kinds of tutors and lecturers, but never like crazy Cyber Doctor here. I feel scared, and educated
@smoothbeak
@smoothbeak 3 года назад
Haha, "crazy cyber doctor"!
@CristhianDalmazzo
@CristhianDalmazzo 3 года назад
Whoever writes these scripts deserves an award. As well as this lady for delivering the lines perfectly and giving this great performance. Education and entertainment at it's best.
@roelandriemens
@roelandriemens 5 лет назад
I remember a query that ran over six hours. Ever month again year after year. One day I checked the output and that query had run only a few minutes. I asked a colleague if there was a problem. She said 'O, i created an index.....'
@Bargains20xx
@Bargains20xx 5 лет назад
haha nice learning experience
@spmegaman1
@spmegaman1 3 года назад
Hahaha that's brilliant 😂
@CrazyBenlols13
@CrazyBenlols13 3 года назад
How many entries and coloumns did the tables in the database had ? 6 hours seem crazy.
@googdriveforme4115
@googdriveforme4115 3 года назад
It took an year to get a solution for a slow running query.. ? 😂
@diegoguisasola3858
@diegoguisasola3858 3 года назад
@@googdriveforme4115 we wasn't looking for one lol
@benjiviews4300
@benjiviews4300 5 лет назад
You just made databases interesting, and 10 mins ago I never even realised what an index was!
@joncrosby1
@joncrosby1 Год назад
I have 20+ years in data analytics and IT and this is one of the best videos on indexes I have found. Thank you for making this so educational and fun at the same time! I'm excited to check out your python channel next!
@Socratica
@Socratica Год назад
Thank you for your kind message! We're so glad you've found us!! 💜🦉
@salence99
@salence99 Год назад
Could't agree more. Fantastic
@suryas5609
@suryas5609 Год назад
@joncrosby1, Since you have 20+ years of experience, could you please guide me how to get a job in this field? I am a Computer Science graduate and want to go to Data Analytics (I dont want to be a hard core programming developer). I have learnt SQL, Basics of Python and Data Visualization tools like Tableau and also made some dashboard to learn properly. I need your advise on how to apply for data analytics job. Should I learn any more skills? like data warehousing or cloud? Please let me know. Thank you in Advance!
@rajatsaha891
@rajatsaha891 3 года назад
This couldn't be easier, crisper and more interesting. Simply enjoyable!!
@giseleshuri9469
@giseleshuri9469 3 года назад
i just love this lady a lot.
@thedev5603
@thedev5603 3 года назад
Me tooo
@rayhan8701
@rayhan8701 3 года назад
me too
@shreehari2589
@shreehari2589 3 года назад
Me too
@ayencoscolfield3312
@ayencoscolfield3312 3 года назад
Same here, av falling in love with her videos ever since i discovered her channel
@vibhors
@vibhors 3 года назад
me too
@parsonsmarcus
@parsonsmarcus 2 года назад
As Ulka said at the end of this video, use indexes wisely! A general rule of thumb for indexes is that adding indexes to a table will speed up selects (that are constructed correctly) and slow down inserts/updates/deletes because whatever SQL system you use has to rebuild those indexes if a modifying transaction occurs.
@racheltindoy
@racheltindoy 4 года назад
I love the enthusiasm, robotic fast (not boring) narration, clear and practical examples, and the visualization! Definitely subscribing!
@H1TMANactual
@H1TMANactual 3 года назад
I can't believe a video on sql has quarter million views. That speaks to the quality of this video
@jameskeogh9452
@jameskeogh9452 4 года назад
At last, I can understand mySql. Explained perfectly in a way my brain can comprehend. I will definitely be donating to keep you guys going. Thank you so much.
@liljj2k10
@liljj2k10 3 года назад
I am with you on this one
@albusdumbeldoor3128
@albusdumbeldoor3128 Год назад
Me too
@antoinebguitar2869
@antoinebguitar2869 Месяц назад
ur such a life saver, i often dont understand immediately in class but those videos make me understand almost immediately, thats quality, appreciate it, wish ppl always invested this much time in teaching
@user-qh6uo5wy6f
@user-qh6uo5wy6f 2 года назад
Unbelievable! The best SQL tutorial I have ever watched. It couldn't be shorter and clearer. I bet even a child or even my grandmother could be able to understand it.
@abhishekdas2512
@abhishekdas2512 3 года назад
This is the channel I ve been waiting for long time. Thanks RU-vid algorithm.
@johnhillescobar
@johnhillescobar 5 лет назад
Love the comedic way you use to teach. Please, do not stop doing it!!
@AndrewKlem
@AndrewKlem Месяц назад
Incredible. I've spent seven hours over the past two days refreshing myself on database concepts and filling in gaps and this was my favorite 10 minutes of those seven hours by a factor of 100 billion.
@dhananjaywadhavane4106
@dhananjaywadhavane4106 4 года назад
10 min ago I never thought learning can be funny and interesting at this awesome level. Good job.
@morsheddld
@morsheddld 5 лет назад
wow! This video worth a lot. B4 watching this i never knew index is this essential for faster performance. Well explained. Keep uploading such Videos. Animation were superb to understand quickly. God bless u.
@asdfkjhlk34
@asdfkjhlk34 5 лет назад
This is the best coding channel I HAVE EVER SEEN!!!!!!!!!!!
@piyh3962
@piyh3962 5 лет назад
I'm a professional that spends all day querying and this is the first video that explained it concisely
@amirhosseinahmadi3706
@amirhosseinahmadi3706 4 года назад
Wow! Well done! This is by far the best video I've ever seen on SQL indexes. The demonstration was phenomenal!
@travischaplin6272
@travischaplin6272 2 года назад
This was fantastic. Hands down the best online lessons I've watched.
@RockitMan-ey8tx
@RockitMan-ey8tx 5 лет назад
I love this series. Keep up the great work!
@TauriMarie
@TauriMarie 3 года назад
I've been looking for a tutorial for days that solves all the doubts I had before starting to use indexes, and this one definitely succeeded. Thank you very much! A fairly complete and well explained explanation!
@InsomniaCast
@InsomniaCast 3 года назад
I found this RU-vid channel some time ago when I was first learning python and have been laughing ever since. I learn a good deal of important information here about methods/functions I thought I knew already. Its fun and informative and I hope you continue to educate me in this most hilarious fashion.
@aurelitojunio7795
@aurelitojunio7795 4 года назад
Wow, one of the best explanations I've ever seen. Congrats!
@Akopyan
@Akopyan 5 лет назад
I can't believe i watched the video. i learned something. and totally enjoyed every second of it.
@abhishekpaul6094
@abhishekpaul6094 10 месяцев назад
Great video! One tip: Adding indexes to a table will speed up select commands but will also slow down other commands like insert/update/delete because the SQL server has to reconsider the indexes if any kind of modifying transaction occurs in the future.
@yg713
@yg713 3 года назад
I learned what I needed and laughed at the same time I was learning. Thank you for adding a lot of production value to the lesson.
@hamzasaleem6154
@hamzasaleem6154 4 года назад
This is absolutely a fantastic video , I am subscribing This channel deserves number of subscribers that even the indexing will take time to count
@sudofix
@sudofix 3 года назад
wow, that was a hell of a playlist !! i could watch a million of these and never get bored. Thanks socratica
@user-di4bt7qu2i
@user-di4bt7qu2i 5 лет назад
This was a most excellent series. Time well spent. Thank you so much for posting.
@ameyapatil1139
@ameyapatil1139 3 года назад
Ita amazing how something can be made informational and enjoyable both at the same time !
@AzfarRizvi
@AzfarRizvi 4 года назад
"The hardship is impossible to put in words." 😍
@christopherpink842
@christopherpink842 2 года назад
WHAT A BLAST!!!!! I watched the whole tutorial, took notes I was literally hooked learnt a lot felt like watching a movie, the production and creation of this course is PRICELESS THANK YOU , wish there was a JavaScript course like this
@TheGrizzlyKnight
@TheGrizzlyKnight 7 месяцев назад
WOW My jaw is on the floor at how amazing this video is! Quality, tone and speed of voice is on point. Explanations are well thought out and provide all necessary context to comprehend. Video/Audio editing is perfect with just enough to keep it interesting and remove distractions.
@adarsh902
@adarsh902 4 года назад
I really appreciate the effort you've put in the background sounds nd editing thereby making it very interesting.
@vero0992
@vero0992 5 лет назад
Fantastic. I'm slightly familiar with SQL because I only very occasionally need to have certain data pulled by our DBAs. Very cool @ 7:25 - I had that question. Thanks Socratica.
@caesaaar
@caesaaar Месяц назад
4 years later and still the best video
@sadowizzy1105
@sadowizzy1105 4 года назад
Must Amazing SQL Tutorial ... You Deserve More Than A Billion Subscribers
@bablobko
@bablobko 4 года назад
Just fell in love with you after hearing your laughter.
@simplesql1408
@simplesql1408 2 года назад
I always think of this video when I create a clustered index. This tutorial very plainly outlines the benefits of indexes and how they can speed up our queries. Thank you!
@obedmireku3137
@obedmireku3137 2 года назад
This lady is on another level. You have taken RU-vid to another level
@edvzig
@edvzig 4 года назад
Extremely helpful video, thanks
@avinash7154
@avinash7154 4 года назад
woooow really interesting and the way of her teaching and animation was awesomee....upload more videos on sql ,clear explanation ........congrats
@sorosw2980
@sorosw2980 3 года назад
Have to say that this is the only video I have seen that makes SQL seems fun to learn. Thank you!
@josuemedia
@josuemedia 4 года назад
The level of sarcasm is just the right amount and amusing! Keep up the great work :)
@oliverkaunds
@oliverkaunds 3 года назад
Thank you for such an amazing explanation. I have one question though, the index you created was that a clustered index or a non-clustered one?
@SteinGauslaaStrindhaug
@SteinGauslaaStrindhaug 5 лет назад
Love how you're insisting on reading out all times in milliseconds like a programmer, even though the GUI already has converted it into more human digestible seconds and ms.
@FeLiNe418
@FeLiNe418 4 года назад
It's to make it sounds that it really takes a lot of time because 4000 is bigger than 4.
@chevalier5691
@chevalier5691 5 лет назад
I, hereby declare that Socratica is the obvious front-runner for the first channel to reach 100 billion subs.
@MoSec9
@MoSec9 4 года назад
Love these videos. I'm not new to python, but this may just be the first video series I watch fully. Nice work!
@bndissanayaka
@bndissanayaka 3 года назад
"The hardship is impossible to put in to words!!!" 🤣🤣
@STIVESification
@STIVESification 5 лет назад
Could you please tell the Socratica to make new series of topology, or any high math
@SanamSindhooShaikh
@SanamSindhooShaikh 3 года назад
you have no idea, how much you have helped me.. i have no words to say thanks .. it changed my whole DB speed .. thanks million ..
@godwinshaibu6328
@godwinshaibu6328 9 месяцев назад
I don't think any educational material has been as entertaining as this playlist I just watched... It's mind blowing!... Totally the best investment of my time!
@jorjiang1
@jorjiang1 5 лет назад
one day machine will talk like human, human like machine
@woolfel
@woolfel 5 лет назад
You should show query planner to illustrate how RDBMS determines which query plan to use. I'm guess that is already on your list of things to cover. After that, you should cover lock escalation under concurrent load where you have a mix of reads/writes on the same table. Then for the advanced SQL indexing concepts, compare b-tree versus bitmap indexes. If you get to report queries materialized views versus dynamic views for complex multi-dimensional queries :)
@darrenleonard
@darrenleonard 3 года назад
This was great thanks! Just had a query that was taking 2 minutes to execute. I added in about 9 indexes and it now runs in 2 seconds. Gamechanger!
@Sergeespaillat
@Sergeespaillat 5 лет назад
Your videos help me understand farrr better than my professors. Thank you so much for all you do!
@sachunjyo
@sachunjyo 4 года назад
Fantastic job girl... Well explained... We learn the most when we are having fun... And you have successfully turned SQL into fun.... Love the craziness
@DARKCOP2011
@DARKCOP2011 5 лет назад
what about : SELECT COUNT(*) FROM person WHERE last_name = 'Mohanty', AND first_name = 'Ulka'; Result: ONE! and only ONE! Messages: Successfully run. We found the best teacher in earth and mars! Total query runtime: 0 msec.
@fredericksandalo8909
@fredericksandalo8909 8 месяцев назад
amazing.... she can teach me SQL all the time any time every single time.
@MelancholyMadoka
@MelancholyMadoka 3 года назад
Did not expect this level of enthusiasm; not a complaint.
@ashwinpande7095
@ashwinpande7095 2 года назад
Best tutorial series on SQL HANDS. DOWN.
@iTurkiQ
@iTurkiQ 4 года назад
One of the greatest explanations I've ever seen! Well done! Anybody knows the name of the piano music? 8:11
@oliviergobet9408
@oliviergobet9408 3 года назад
"Quasi una fantasia" (Moonlight Sonata) by Beethoven
@koungmeng
@koungmeng 5 лет назад
all in RAM
@stifflery
@stifflery 5 лет назад
EVERY SINGLE COLUMN...YESSS! xD
@danielsandor8738
@danielsandor8738 4 года назад
Not a big deal.
@waitwhat7164
@waitwhat7164 8 месяцев назад
Straight to the point unlike other tutorials. I only needed the concept really..
@iosifpuha6114
@iosifpuha6114 9 месяцев назад
This is one of the best computer science videos I've seen in my career (I'm final year 2 at uni) and whole life also, you rock!
@shawntv7130
@shawntv7130 4 года назад
The typing effects music makes me feel like I'm in a game.
@priscillaamorim88
@priscillaamorim88 5 лет назад
Great video! How can I check if a database has index before running a query?
@robertl30
@robertl30 5 лет назад
sp_helpindex Person.
@blackwhite2361
@blackwhite2361 3 года назад
The reason why this channel hasn't hit a million yet beats me. It should have 10 million subs. The lady is very entertaining
@Anna36936
@Anna36936 Год назад
This playlist was GLORIOUS. Thank you!!!
@maciejk125
@maciejk125 5 лет назад
I dont know how you do it, but i watch this for entertainment.
@shortcutDJ
@shortcutDJ 5 лет назад
these are the best tutorials because they short and sweet just like my stamina in bed.
@jamshedkarimnazarov7610
@jamshedkarimnazarov7610 Год назад
Holy cow, this intro is just fire. Really impressed
@albusdumbeldoor3128
@albusdumbeldoor3128 Год назад
Please give an Oscar to the person who edited the video and for the lady who presented the video
@spwim
@spwim 3 года назад
did anybody else feel like yelling : "FIRE THE LASSEEEEERRRR"
@oliverkaunds
@oliverkaunds 3 года назад
She is Dr. Evil's daughter 😂
@ezadviper
@ezadviper 5 лет назад
9:34 I can hear somebody BTS snickers ...
@sajaljaiswal1659
@sajaljaiswal1659 Год назад
Amazing editing and the explanation couldn't have been better. Thank you!!
@murtazaulhasan
@murtazaulhasan 8 месяцев назад
I must say, Excellent content! Brilliantly explained. Wel done!
@kirbymarchbarcena
@kirbymarchbarcena 5 лет назад
Oh, that laugh @0:07!
@Nsuidara
@Nsuidara 5 лет назад
or 9:29 xD
@kirbymarchbarcena
@kirbymarchbarcena 5 лет назад
@@Nsuidara Oh,yeah, forgot that one which not even Rita Repulsa can do better.
@the-mush
@the-mush 5 лет назад
"Indexes"?? Ok, we declare war on Mars for despicable crimes against human language. Your sins would not go unpunished.
@MrBlastZone3000
@MrBlastZone3000 4 года назад
grammarist.com/usage/indexes-indices/ Although you are right that it is used in the wrong context, it is not incorrect to say "indexes".
@Jim202030
@Jim202030 Год назад
I know most of this stuff already but I just love watching these videos. It reminds me off watching documentaries from the 90s back when tv was nice.
@sempribo
@sempribo 3 года назад
The professors at our university can learn a lot about teaching from you! This was awesome
@helenhayes3298
@helenhayes3298 3 года назад
This is how I need SQL explained to me, thank you so much!
@BENNiiiiiiiiiiiiiii1
@BENNiiiiiiiiiiiiiii1 4 года назад
This is hands down the best video explaining this topic!
@tiagomarmitt4542
@tiagomarmitt4542 3 года назад
Omg, this channel... The songs, wallpapers, environment, I just loved it! Congratulations.
@fajara.r1379
@fajara.r1379 4 года назад
never learn faster and clear before about indexes, thanks a lot
@jakurdav
@jakurdav 3 года назад
when you keep my attention in 4 AM, you better be sure you are doing your job GREAT! Subscribed
@narendranomprakash7984
@narendranomprakash7984 Год назад
This was one of the most fun tutorials I have watched in my life.
@faisalee
@faisalee 11 месяцев назад
That laugh at the end was EPIC! I love your work :)
@curiousgeorge2064
@curiousgeorge2064 Год назад
Absolutely outstanding content. Such a clear breakdown showing the before and after. Thank you
@Brickkzz
@Brickkzz 5 лет назад
Loving Ulka's acting!! haha Great video, Socratica!
@alen7717
@alen7717 Месяц назад
tomorrow I have an interview and it is the best video i could find for indexing. thank you so much :)
@user-zh2oz9fe4m
@user-zh2oz9fe4m 9 месяцев назад
Wow, that was quite an impressive explanation. Thanks!
@vk86444
@vk86444 3 года назад
Thank you! This is what I've been looking for so long. You explained it very simply and only the important things. Thank you! 😍
@datanerden1057
@datanerden1057 4 месяца назад
This is the most entertaining video about something so mundane as SQL indexing! 😆
Далее
Database Indexing for Dumb Developers
15:59
Просмотров 36 тыс.
У мамы в машине все найдется
00:38
КТО ЭТО😱
00:41
Просмотров 690 тыс.
Тяжелые будни жены
00:46
Просмотров 728 тыс.
SQL Joins Explained  |¦| Joins in SQL |¦| SQL Tutorial
10:26
How do indexes make databases read faster?
23:25
Просмотров 45 тыс.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Database Indexing Explained (with PostgreSQL)
18:19
Просмотров 286 тыс.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Mysql Index Tutorial | [Simple Explanation] [2020]
6:56
AsyncIO, await, and async - Concurrency in Python
9:12
How do SQL Indexes Work
12:12
Просмотров 560 тыс.
У мамы в машине все найдется
00:38