We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
B-tree vs B+ tree in Database Systems
Summary
Description
In this episode of the backend engineering show I'll discuss the difference between b-tree and b+tree why they were invented, what problems do they solve, and the advantages and disadvantages of both. I'll also discuss the limitation of implementing b-tree over b+tree and how Discord ran into a memory limitation using b-tree Mongo.
Check out my udemy Introduction to Database Engineering course
https://husseinnasser.com/courses
Learn the fundamentals of database systems to understand and build performant backend apps
Chapters
0:00 Data structure and algorithms
1:30 Working with large datasets
6:00 Binary Tree
8:30 B-tree
19:30 B+ tree
22:00 B-tree vs B+ tree benefits
25:00 MongoDB Btree Indexes Trouble
30:00 Summary
working with a billion-row table (Members only)
indexing video
Discord moving from MongoDB to Cassandra
https://www.youtube.com/watch?v=86olupkuLlU
https://blog.discord.com/how-discord-stores-billions-of-messages-7fa6ec7ee4c7
MongoDB Indexes
https://docs.mongodb.com/manual/indexes/
Postgres Indexes
https://www.postgresql.org/docs/13/btree-implementation.html
b-tree code from @usfcalifornia
https://www.cs.usfca.edu/~galles/visualization/BTree.html
b+tree
https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html
Support my work on PayPal
Become a Member on YouTube
https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join
π§βπ« Courses I Teach
https://husseinnasser.com/courses
π Backend Engineering Videos in Order
https://backend.husseinnasser.com
πΎ Database Engineering Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2
ποΈListen to the Backend Engineering Podcast
https://husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
πΌοΈ Slides and Thumbnail Design
Canva
https://partner.canva.com/c/2766475/647168/10068
ποΈ Mic Gear
Shure SM7B Cardioid Dynamic Microphone
Cloudlifter
XLR cables
Focusrite Audio Interface
π· Camera Gear
Canon M50 Mark II
Micro HDMI to HDMI
Video capture card
AC Wall for constant power
Stay Awesome,
Hussein
Translated At: 2025-03-14T02:32:59Z