← Advanced DBMS learning path
Advanced DBMS · Module 6 of 10

Recovery and logging

Restore databases after failures.

📖 Key ideas

  1. Failures: transaction, system crash, media failure.
  2. Write-Ahead Logging: log changes before writing data.
  3. Undo uncommitted changes; redo committed ones.
  4. Checkpoints reduce recovery time.
  5. ARIES is a well-known recovery algorithm.
💡 Real-life example: The log is a diary of every change: after a power cut, re-read it to rebuild exactly what happened.
WALWrite-Ahead Logging
UndoReverse uncommitted changes
RedoReapply committed changes
CheckpointPoint that limits recovery work