Skip to content
Commitwise
Menu

ACID

Atomic, Consistent, Isolated, Durable: the guarantees a database transaction gives.

Definition

Atomic: all of a transaction's changes happen or none do. Consistent: constraints hold before and after it. Isolated: concurrent transactions don't see each other's half-finished work (how strictly depends on the isolation level). Durable: once COMMIT returns, the change survives a crash, thanks to the write-ahead log.

In practice

A transfer debits one account and credits another; if the app crashes in between, neither change is kept.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.