Module 01 · Database Internals · One Database, to the Bolt · about 18 min to read
Trees that never overwrite: B-tree variants
B-Tree on Disk · Open board
The plain B-tree on disk, the shape every variant in this lesson starts from and then changes in one place.
Lesson 15 of 26 in Database Internals
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
In this lesson
- 2009: a database that could not be trusted to finish a write
- The problem: a scratched-out page and a power cut
- Copy-on-write: never scratch, copy
- Many clerks at once: the mapping table and the delta record
- Do not carry the slip all the way down: the Bε-tree
- Why each one exists
- Copy-on-write in code
- The Bw-tree in code
- The Bε-tree in code and cost
- Which one when
Terms it explains: copy-on-write, snapshot, delta record, mapping table, consolidates, Bε-tree, buffer, Common mistakes.
Review Database Internals
Saved in this browser, and to your account when you sign in.