Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Database Internals · One Database, to the Bolt · about 18 min to read

Play it as a journeyTutor comes with a plan

Trees that never overwrite: B-tree variants

B-Tree on Disk
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.

Related papers

Review Database Internals