DBMS Tutorial · Revision notes

Transactions & Concurrency Control

A transaction is a group of operations that must happen completely or not at all, like a bank money transfer. Concurrency control makes sure that many transactions running together still give a correct result.

Quick revision

  • ACID: Atomicity, Consistency, Isolation, Durability
  • States: Active → Partially committed → Committed, or Failed → Aborted
  • Strict ⊂ Cascadeless ⊂ Recoverable
  • Conflict: different transactions, same item, at least one write
  • Cycle in precedence graph → not conflict serializable
  • 2PL: growing phase then shrinking phase; ensures serializability
  • Strict 2PL: cascadeless. Conservative 2PL: deadlock-free
  • Wait-Die: older waits, younger dies. Wound-Wait: older wounds, younger waits
Read the full Transactions & Concurrency Control notes on Doubtclip →