Shadow Paging vs Write-Ahead Logging (WAL): How Storage Engines Guarantee Crash Recovery
Storage engines must guarantee that a sudden power loss or database crash mid-transaction leaves the data file completely uncorrupted. We compare Shadow Paging (used in LMDB and SQLite journal mode) against Write-Ahead Logging (WAL, used in PostgreSQL, InnoDB, and RocksDB).