Back to list
Lv.3

ACID Properties

ACID Properties

Four properties that keep database changes from causing inconsistencies or data loss.

In Simple Terms

ACID properties are four rules that keep data in a database from disappearing or going wrong when it gets changed. If something fails partway through, everything gets undone. Changes that break the rules are stopped. Tasks running at the same time don't mix up each other's half-finished work. And once a change is finished, the record is reliably kept. They're used in systems where money or records can't be even slightly off, like bank transfers.

Behind the Name

ACID is an acronym built from the first letters of four words: Atomicity, Consistency, Isolation, and Durability. Each word names one promise a database makes when it changes data, and together they're known as the ACID properties.

Take a Closer Look!

ACID properties are four qualities that keep a database's records from breaking or contradicting themselves when data gets changed.
They're an essential standard in situations like a bank transfer, where several steps need to be carried out reliably as one single unit.

The first one, Atomicity, means a series of steps either "all succeeds" or "all gets treated as if it never happened." For example, if an error hits right after money is taken out of your account in a bank transfer, the system automatically rolls things back to how they were before.
The second one, Consistency, means the database never ends up with contradictory data that breaks the rules you've set. If the rule is that a balance can't go below zero, any update that would break it is rejected, so the data stays correct.

The third one, Isolation, means that even when several operations run at the same time, they don't affect each other's in-progress states. Roughly speaking, even if two operations hit the same account at once, the result is the same as if they had run one at a time, in order.
The fourth one, Durability, means that once an operation is complete, its data stays put even if the power goes out or the system stops afterward. Records that have been saved are firmly written to storage, so they aren't lost even if a failure happens.

CategoryData