Transactions (MVCC)

The board right after the one on the write-ahead log (Write-Ahead Log), inside the project lesson Build Your Own Database - From Scratch.
Before you start. This series builds a small database, a program that stores rows on disk and answers queries the way Postgres or SQLite do. So far it writes every change to a log file before it touches the row itself. That means a crash halfway through does not lose or corrupt anything. It replays that log to put itself back together after a restart. Every one of those changes has, until now, been the only thing happening at a time.