Each node holds many keys; when full → SPLIT, and one key rises to the parent (which one?). It grows UPWARD, always balanced. Toggle order, search, height =…
Why it matters
On disk, opening a node means reading a block, and that is slow. A binary tree has one key a node, so it is log₂ n high; a B-tree holds hundreds of keys a node, so millions of rows fit in three or four levels. Postgres, MySQL InnoDB and SQLite use the B+tree variant.
The key idea
Wide nodes, a short tree, growing at the top
Common mistakes
An index query on a table of millions of rows still feels slow with a BST Every BST pointer hop is one slow disk block read. A B-tree packs many keys a node, so the tree is short and the reads are few.
Wondering why a B-tree never rotates like an AVL tree It does not need to. Balance comes from split-and-rise; a new root appears on top, so every leaf is always at the same depth.
Mixing up B-tree and B+tree while reading database docs A B+tree keeps ALL data in its leaves and links the leaves, so ranges are fast. That is what most databases use.
Try it in this playground
Watch a shelf split Its middle packet rises into the parent.
Watch the root split The tree grows one level, at the top.
Search a packet One shelf per level: count the ones opened.
Run a range Watch it go up and down between shelves.