Simplest, Most Detailed Explanation of BTrees | Why do Databases use BTrees not BSTs or Arrays?

  Рет қаралды 18,421

Keerti Purswani

Keerti Purswani

Күн бұрын

Пікірлер
@koustubhshidlyale7545
@koustubhshidlyale7545 2 ай бұрын
loved the way you implemented data structure in real-world application. This helps us to understand how different data structure works rather than just solving leetcode problems.
@initiator0016
@initiator0016 2 ай бұрын
The depth with which things are explained really makes a difference. Keep up the great work.
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Thank you so much! 😇
@VaibhavPatil-rx7pc
@VaibhavPatil-rx7pc 23 күн бұрын
clear, crisp explanation, top of top
@blogspotinfitec
@blogspotinfitec 2 ай бұрын
I really appreciate your hard work toward teaching in KZbin channel , SALUTE.
@DattaprasadChavan
@DattaprasadChavan 2 ай бұрын
Excellent explanation. I fell in love with learning how DBs work behind the scenes. Thank you so much for such great content.
@vinayakporwal9885
@vinayakporwal9885 2 ай бұрын
Easy math for storing disk calculation: - Each pile of disks can store 10 records and takes 4KB of storage. - To store 1 million records, you need 100,000 piles. Traversing each pile takes 1ms, so total time is 100 seconds (100,000ms). Optimizing with Index Table: - Each index table row takes 10 bytes to store one pile's address. - 1 pile (4KB) can store 400 rows (addresses). So, 1 index pile can store addresses for 4,000 records. Result: - To store 1 million records, you need 250 index piles additionally to make it optimize. Access time is now 250ms to 251ms (250ms to find the right index pile, 1ms to access the record). Further Optimization with another Index table: - We know each row takes 10 bytes to store one pile's address. - We have 250 piles of index table-1 that we are storing each pile in each row of Index table-2 which takes 250 rows (10 bytes each) = 2500 bytes < 4000bytes(one pile) Result: -- To store 250 index piles, you need one multi-index pile additionally to make it more optimize. - Access time is now 3ms = 1ms (for getting multi index pile) + 1ms(for getting index pile) + 1ms (for getting 10 records pile) correct me if some error
@aishwaryas8283
@aishwaryas8283 2 ай бұрын
Thanks for this summarisation 👍🏼
@shlokbansod545
@shlokbansod545 2 ай бұрын
guysss if you are wondering whether you should watch the whole video or not. Let me tell you this is the best video for understanding b-trees. I have watched every video on youtube but hands down this is the best video so far. You are the best teacher ever keerti mam
@Hemanthkumar-ck1zu
@Hemanthkumar-ck1zu 2 ай бұрын
I have just found your KZbin channel. This is amazing. I mean this is pure gold!!, I don't know why KZbin didn't recommend you till now or why you don't have a million views.
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
I also don’t know why 🥲
@shru8178
@shru8178 Ай бұрын
Amazing in-depth content! Thanks a lot :)
@rohitsai806
@rohitsai806 2 ай бұрын
Hats off to your dedication 🎉..Great video about the internal working of indexing and really good comparison about the time taken using multiple data structures.
@Md_sadiq_Md
@Md_sadiq_Md 2 ай бұрын
The point mam showed me B-Tree I have just blown up Thank you for making me love with Engineering
@raviyadav2552
@raviyadav2552 Ай бұрын
It is super intuitive. Thank you so much for sharing it :)
@ankushladani496
@ankushladani496 2 ай бұрын
Thanks for this level of content...❤😊🎉
@arvishdoshi6209
@arvishdoshi6209 2 ай бұрын
Such a nice explanation of things and how it all works under the hood. I wonder why this channel hasn’t received a million subs yet ❤ .. surely deserves so much appreciation
@div0007
@div0007 2 ай бұрын
Hey Keerti, I read about B-trees from the book Designing Data-Intensive Applications, but your clear explanation really helped me understand it better. Thanks for making this video!
@amitaggrawal5069
@amitaggrawal5069 2 ай бұрын
Hello Keerti, Thanks for this amazing video. Your hard work is visible since you are going to such depths and helping to build the foundation on the topic. Looking forward for more such videos.
@sagarsunar6501
@sagarsunar6501 2 ай бұрын
Really awesome content. Keep inspiring and aspiring! !
@KingKing-jy4kk
@KingKing-jy4kk 2 ай бұрын
Hey i think it will be good to mention that in the time, mainly searching time of block in whole disk is considered. It looks like initially we are considering just block access/read time then later on we optimising search time. It can lead a confusion that all index tables ultimately pointing to 10^5 blocks only which also have to be read at the end, so its still 100 seconds to read via the index table as well.
@Hemanthkumar-ck1zu
@Hemanthkumar-ck1zu 2 ай бұрын
I might get addicted to your explanations
@shortflicks83
@shortflicks83 2 ай бұрын
I love the way you are explaining each and everything. More power to you keerti from Pakistan
@abhishekvishwakarma9045
@abhishekvishwakarma9045 2 ай бұрын
awesome content this series is going to be amazing 🔥
@StellasAdi18
@StellasAdi18 2 ай бұрын
This is amazing. Sometimes when you work in a company for 5+ years, at times tend to forget basics. Thanks for covering this topic and looking forward to more. You are one of the best teacher/mentor.
@sragopal
@sragopal 2 ай бұрын
Thank you Ma'am this series will be a great hit for you :)
@chargeduprochit2615
@chargeduprochit2615 2 ай бұрын
it was an amazing video mam please continue this series ,its really helpful and intriguing
@titanofchaos
@titanofchaos 2 ай бұрын
YOUR WAY OF TEACHING ❤
@manideep7148
@manideep7148 Ай бұрын
u r the most underrated youtuber. you pace, ur way of explanation is amazing. btw I love the way u say "hey guys"😅
@nakulmantri1235
@nakulmantri1235 2 ай бұрын
Beautiful explanation, loved the way you related indexing and rotated it to make btree
@yogeshsy7382
@yogeshsy7382 2 ай бұрын
A Big thank you! Can't wait for the next video on SQLite.
@Mahmmadhusen072
@Mahmmadhusen072 2 ай бұрын
Exillent as usual 😊
@Md_sadiq_Md
@Md_sadiq_Md 2 ай бұрын
A video on B+ Trees please 🥺
@TechSpot56
@TechSpot56 2 ай бұрын
Great explaination, keerti. repeating the concept briefly after in-depth explaination really helps. ☺
@singhji4149
@singhji4149 2 ай бұрын
Keerti courses are really awesome 🙌....
@PariRams
@PariRams 2 ай бұрын
I enjoyed the video!✨ I have a couple of questions though about indexing and how it works with different data types. 1.When indexing an integer primary key, I understand how the B-tree or B+ tree efficiently organizes and searches through numbers. But how does this process change when the index is a string? How are the addresses and values stored in this case? 2.Additionally, could you explain how a multilevel (composite) index works, especially with a B-tree? For example, if we index on two columns (say, a string and an integer), how does the B-tree structure handle this, and how does it affect search performance?"
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Noted, let me cover in upcoming videos!
@DeepankarManduri123
@DeepankarManduri123 2 ай бұрын
Hi Keerti, I am having 10 yr of experience in IT industry but the way you have given the internal overview of DB and given the DSA with practical approach, it has given me a revision of DSA and kudos to you, I am a big fan of your hard work and would like to understand DSA more from you . Thank you so much for such a mentorship
@AmitKumar-xc2rk
@AmitKumar-xc2rk 2 ай бұрын
Great explanation, can't wait for the next video. Please drop it asap
@binary-brackets
@binary-brackets 2 ай бұрын
Thank you @Keerti, Wonderful explanation!!
@aumprakashdehury
@aumprakashdehury 2 ай бұрын
Hi Keerti, Please do separate video on B-Tree and B+-Tree.
@abhidevlops
@abhidevlops 2 ай бұрын
Kirti mam great video need more videos like this 😍
@kapilyadav5101
@kapilyadav5101 2 ай бұрын
Great in-depth explanation
@abhiram_ar
@abhiram_ar 2 ай бұрын
love your teaching 🌻🌻
@sheruloves9190
@sheruloves9190 2 ай бұрын
Wonderful!
@paramgoswami7224
@paramgoswami7224 2 ай бұрын
please do go into more detail .. maybe a seperate video about B+ tree
@abushivivek4601
@abushivivek4601 2 ай бұрын
Eagerly waiting for next one 💃
@KD-mg1lv
@KD-mg1lv 2 ай бұрын
Excellent Ma'am👍🤌
@wellwisher7333
@wellwisher7333 2 ай бұрын
Thanks Keerthi.
@vaibhavyadav1787
@vaibhavyadav1787 2 ай бұрын
It would be great if you could tell how same thing work with SSD also. It's really appreciated what're you doing miss, hats off to you ;)
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Will do! ✌🏻✌🏻
@AnandTiwariJDE
@AnandTiwariJDE 2 ай бұрын
Amazing content. Experience can be more better with less Ad interruptions. Too many Ads interfere with learning!
@ronn004
@ronn004 19 күн бұрын
really awesome
@blogspotinfitec
@blogspotinfitec 2 ай бұрын
Please provide more detailing
@Praveshkumar-by3tq
@Praveshkumar-by3tq 2 ай бұрын
there should be a dry run of how the b-tree is formed, how it split and make one more level of indexing.
@vivekmishra5876
@vivekmishra5876 2 ай бұрын
Awesome 😮
@kaustavdas6550
@kaustavdas6550 9 күн бұрын
I understand that our height comes to 3 with a order of 100 or m = 100 and and n or total no.of nodes = 10^6. So if m is the no.of keys eache node should what is the physical representation of 100? Is it 100 records or 100 entries?
@mehdismaeili3743
@mehdismaeili3743 2 ай бұрын
Excellent .
@TheBigOlTime
@TheBigOlTime 2 ай бұрын
please do create a indepth explaination on B+ trees also...🙂🙂
@jaygoyani5934
@jaygoyani5934 2 ай бұрын
thank you didi💞
@gethighfly
@gethighfly 2 ай бұрын
Hi Keerti, hope you are doing well. I have 2 questions: 1. Do your design courses really only require basic JS knowledge? Do you explain all the frameworks and libraries used when coding? How comfortable would one be following along? 2. Do you have any courses on distributed systems or do you intend on doing anything related to them?
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Hey, Pre-requisites are always mentioned in the course description (check FAQ) LLD and HLD are interview prep focused courses vs HHLD focuses on project building which could be either for a better resume or to become better engineer. HHLD focuses on distributed systems. Please checkout curriculum and FAQ and if you have any further questions, mail us at support@educosys.com
@mithunrahman8978
@mithunrahman8978 2 ай бұрын
very nice mam, Plz make a video on B+ tree
@x_x3557
@x_x3557 2 ай бұрын
At 31:41, what range is pointed by each key? Does100 point to values =100, if yes then why are m-1 keys required ?
@srinathsagar4736
@srinathsagar4736 2 ай бұрын
Could you please share the resources you used in your research that could be useful to us?
@adityavijaysomani2546
@adityavijaysomani2546 2 ай бұрын
Can you explain here in comment --- m key in layer one , which contains mapping of other tables like that key can have m + 1 Child. Each child can suppose have 100 values (0-100 , 100-200 and so on ). If this child consider as parent for his child ( it should technically have 100 keys ) and his child can have 101 children. I am not undestanding m keys parent can have m * m keys as total keys of child. ( time in video 33:40) . Maybe I am thinking something.Can you give little more clarity ?
@tripatjotsingh1623
@tripatjotsingh1623 2 ай бұрын
Great video and learning. Got a question that Mongodb's document has maximum size of 16 kb. Is it because of block size?
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Thanks and nope. We will cover this!
@akj3344
@akj3344 2 ай бұрын
Your proposal video sent me here lol. Love this content1
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Hehe! Both great videos 🫢🫢
@akj3344
@akj3344 2 ай бұрын
Indeed they are!
@debangshubanerjee1311
@debangshubanerjee1311 2 ай бұрын
every node(except root) should have minimum ceil(m/2) chldren and ceil(m/2)-1 keys. In the vdo it is mentioned wrong as min keys=ceil(m/2)
@pishkekarsanthosh234
@pishkekarsanthosh234 2 ай бұрын
level sabke niklenge after completed this playlist
@pranaykanjolia9077
@pranaykanjolia9077 2 ай бұрын
Heyy Keerti, u said 100 sec to ready 10^5 blocks in the first approach, in second by using index table, we are reading 250 block as entries addresses are over there, but those are also ultimately pointing to 10^5 blocks only which also have to be read at the end, so its still 100 seconds to ready via the index table as well. Kindly explain, what point u are trying to make over there?
@riteshkumar433
@riteshkumar433 2 ай бұрын
@@pranaykanjolia9077The second approach is when you are trying to find a row in the table by some value of a column that is indexed. In that case you will only need to iterate the whole index table at max and will be able to find that item. In the first case you will have to iterate the whole table.
@riteshkumar433
@riteshkumar433 2 ай бұрын
But in this case you could also optimize by using binary search on index table as we are already assuming the table is sorted.
@arshdeepkumar
@arshdeepkumar 2 ай бұрын
i hope i would have known the amazing concepts of databases in my college then would have focused more on OS and Networking Great Content is there any book i can read on OS ?
@Ashutosh_ojha.
@Ashutosh_ojha. 2 ай бұрын
Yes there is this famous book for the operating system just search: principles of operating system by galvin
@singhji4149
@singhji4149 2 ай бұрын
One more question that keerti will you covering sharding also ?
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Ofcourse! That is such an important part of databases
@prashantkumar2963
@prashantkumar2963 2 ай бұрын
Geth uses trie to store data.
@amogu_07
@amogu_07 2 ай бұрын
Letsgooo
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
✌🏻✌🏻
@accidentalSoftwareEngineer
@accidentalSoftwareEngineer 2 ай бұрын
Why ram is fast and expensive
@deadpoolx1477
@deadpoolx1477 2 ай бұрын
Madam your looking like Niharika Konidala
@Bhairav-r4x
@Bhairav-r4x 2 ай бұрын
That's fine but how to make my brain to work faster that is my first problem, can we implement indexing for same😂😂😢
@a2zfun181
@a2zfun181 2 ай бұрын
Ye to mera gate ja syllabus h.. 😂😂😂sector, disk, flatter, read n write seek time...
@niteshshah4306
@niteshshah4306 2 ай бұрын
Level sabke niklege was like:- 🤣🤣...
@Praveen-i9o
@Praveen-i9o 2 ай бұрын
I hope you understand that much at least - that’s Arrogance
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
What’s arrogance? 👀 Teaching well?
@rabindrapatra7151
@rabindrapatra7151 2 ай бұрын
I am working since 8 years, yet not reached to depth. Surely 40 minutes wont give me in-depth I feel.
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
If you always keep thinking like this, how will you ever reach the depth? It’s one step at a time. You have to get started somewhere and this is an entire series. I don’t get your reasoning 🤷🏻‍♀️
@rabindrapatra7151
@rabindrapatra7151 2 ай бұрын
@@KeertiPurswani I was looking for more longer and detailed content with some code using b trees, b+ trees
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
@rabindrapatra7151 we will be going through the code of actual databases and debugging it and this isn’t the last video 😇
@manideep7148
@manideep7148 Ай бұрын
@@KeertiPurswaniu r the most underrated youtuber. you pace, ur way of explanation is amazing. btw I love the way u say "hey guys"😅
@DarkKnight-o8w
@DarkKnight-o8w 2 ай бұрын
Dell intel all are laying offs, market down and these bhaiyya didis saying market is good, course le lo job lag jayegi 😂
@KeertiPurswani
@KeertiPurswani 2 ай бұрын
Tutorial video pe bhi hatred failaake funny aur cool lagna chaah rahe ho? Khud ki bejjati kr rhe beta
@prashantkumar2963
@prashantkumar2963 2 ай бұрын
I am myself reading Go Ethereum.A client of ethereum.
@selfmotivatedperon007
@selfmotivatedperon007 2 ай бұрын
More respect for such content contributer 🫴🫴
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,4 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 185 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 20 МЛН
YouTube High Level System Design with @harkirat1 !!
35:02
Keerti Purswani
Рет қаралды 105 М.
What are AI Agents?
12:29
IBM Technology
Рет қаралды 594 М.
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 94 М.
What does a Data Analyst actually do? (in 2024) Q&A
14:27
Tim Joo
Рет қаралды 74 М.
20 System Design Concepts Explained in 10 Minutes
11:41
NeetCode
Рет қаралды 1 МЛН
Databases In-Depth - Complete Course
3:41:20
freeCodeCamp.org
Рет қаралды 228 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37