Skip to content

Write-ahead logs in five minutes

Riya MenonFeatured AuthorPosted · 1 min read

A database writes every change to an append-only log and flushes it to disk before changing its data files. After a crash, it replays the log to recover.

Appends are sequential and fast, while the data files can be updated lazily in the background.

Text by Riya Menon, licensed under CC BY-SA 4.0. You may share and adapt it with credit to the author, under the same licence.

Comments

Loading comments…