Index

Module 01 · Database InternalsOne Database, to the Bolt

WAL & Recovery

WAL & Recovery
WAL & Recovery · Open board

The page travelling from memory to disk, with the log that has to beat it there. Follows The Buffer Pool;

Before you start. The last lesson showed that the database keeps its own copies of pages in RAM and changes them there, not on disk, because touching RAM is roughly a thousand times faster than touching disk. That is also the danger this lesson exists to fix: a change that has only ever existed in RAM disappears completely the moment the machine loses power, before it ever reaches a disk file.

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

Lab

You checkpoint three times as often for a faster restart. Why does the log get bigger?

Drag How long the log may run between checkpoints to its shortest, press Add next write repeatedly, and watch If the power died now.

Open The write-ahead log →

Related paper

Review Database Internals →

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