Index

Module 01 · Database InternalsOne Database, to the Bolt

B-Tree on Disk

B-Tree on Disk
B-Tree on Disk · Open board

The board behind the index you’ve been using without knowing its shape, part of Database Internals - the deep-dive set. By the end of this lesson you’ll know why one page-sized decision turns a billion-row search into four stops, and one added arrow kept that search safe while somebody else was rearranging the pages underneath it.

Before you start. WAL & Recovery showed you that every change is written to a log and flushed to disk before its commit is confirmed, so a crash can always be replayed back to where it left off. This lesson is about the structure that log is protecting - the actual arrangement of pages your rows sit inside, and why finding one of a billion of them takes a blink.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Related paper

Review Database Internals →

Saved in this browser, and to your account when you sign in.