GLOSSARY · A WORD, UNPACKED
write-ahead log
an append-only log file where every database mutation is written to disk before being applied to data pages.
A little more detail
A write-ahead log (WAL) guarantees durability (the D in ACID). When a crash or power cut occurs, the database replays uncommitted changes or rolls them back from the WAL upon restart, ensuring zero loss of committed transactions without requiring synchronous writes to scattered disk pages.
See it in practice
These lessons pair the idea with examples you can change and run.