intermediate~2h

Undo, Redo & How Durability Actually Works

The mechanics behind two guarantees you've likely taken for granted: that a rollback can undo your changes, and that a committed transaction survives a crash.

Learning objectives

  • Explain what undo data is used for, beyond just ROLLBACK
  • Explain how undo data enables read consistency for other sessions
  • Explain what redo logs record and how they enable crash recovery
  • Connect redo logging to the Durability guarantee in ACID without re-teaching ACID itself
  • Distinguish undo (logical, reversible) from redo (physical, replayable) by purpose

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Databases Mastery library.

Undo, Redo & How Durability Actually Works

Next Step

Continue to SQL Tuning Fundamentals →← Back to all Database Internals & Performance Engineering chapters