Database Engineering · Finding data fast
Indexes and B-trees
An index is a sorted copy of a column with pointers back to the rows. A B-tree keeps it wide and shallow, so finding one row among millions takes about four page reads.
- Time16 min
- LevelDeveloper
- Experiments2 live
- Check6 questions







Planner sees an index on email and expects about one matching row.
Branch page narrows the range again, down to a single leaf page.
Leaf page holds the email and its row's location: page 4,812, slot 7.
Table page page 4,812 is read to get the full row.