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

Transactions and ACID

Keep data correct with transactions.

📖 Key ideas

  1. A transaction is a unit of work: all or nothing.
  2. ACID: Atomicity, Consistency, Isolation, Durability.
  3. States: active, partially committed, committed, failed, aborted.
  4. COMMIT saves; ROLLBACK undoes.
  5. Serializability ensures concurrent results match some serial order.
💡 Real-life example: A transaction is a bank transfer: debit and credit happen together, or not at all.
AtomicityAll or nothing
IsolationTransactions don't interfere
DurabilityCommitted data survives crashes
SerializabilityEquivalent to a serial schedule