Skip to main content

Transactions and Concurrency

ACID Properties

0:00
LearnStep 1/2

ACID Properties

ACID Properties

A transaction is a sequence of operations performed as a single logical unit.

ACID

Atomicity

All or nothing - either all operations complete or none do.

sql

Consistency

Database moves from one valid state to another valid state.

  • Constraints are maintained
  • Business rules are preserved

Isolation

Concurrent transactions don't interfere with each other.

Durability

Once committed, changes persist even after system failure.

  • Write-ahead logging (WAL)
  • Transaction logs

Transaction States

ACID Properties | Database Systems Mastery | Mathematicon