Database Recovery
Write-Ahead Logging (WAL)
Before any change to database, write to log first:
Learning Objectives
Lesson Outline
Before any change to database, write to log first:
Three phases:
Periodic snapshot to reduce recovery time:
| Transaction State | Action |
|---|---|
| Committed (in log) | Redo if needed |
| Uncommitted | Undo |