Module 2 · Indexes
Episode 12 B+ Trees in Practice
▶ This video is coming to YouTube soon.
What do real B+ trees do that the textbook one doesn't? Heap tables vs clustered tables, covering indexes and the visibility map (Heap Fetches 0), composite keys, suffix truncation, deduplication (292 pages down to 87), and bulk loading vs random inserts, all proved on a real Postgres.
Chapters
- 0:00Intro
- 0:16Same keys, a third of the pages
- 0:37Where the rows live
- 1:54Proof: an index entry is an address
- 2:21Covering indexes and the visibility map
- 3:46Proof: Heap Fetches
- 4:24Composite keys, shorter separators
- 5:25Deduplication: one key, many rows
- 5:59Proof: truncation and deduplication
- 6:40Bulk loading vs random inserts
- 7:39Proof: the same keys, two densities
- 8:14The toolbox
- 9:03Recap
- 9:30Next: Concurrent B+ Trees