ReviseAlgo Logo

Chapter II: Databases & Data Modeling

Transactions

A unit of work that succeeds or fails atomically, with defined states.

In short

A transaction is a unit of work that completes fully or not at all, moving through defined states.

Loading diagram…

Key takeaways

  • Commit makes changes durable; rollback undoes them entirely.
  • Atomicity is the core promise of a transaction.