PrepCity

Write-ahead logging

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 10 pages · about 6 min

Write-ahead logging

A change is written to the log and flushed before success is reported; table pages are written later, and after a crash the log replays what they missed.

Words you’ll learn

  • Commit
  • Disk
  • Database
  • Write-ahead log
  • LSN
  • Checkpoint

Page by page