Databases and storage · Concept

Transactions and ACID

A way to group several database changes so that all of them happen or none do, which is how money, stock and orders stay correct.

Keeping data correct · updated

How it works

Placing an order might insert the order, reduce stock and record a payment. Inside a transaction, a failure halfway rolls everything back, so stock is never reduced for an order that does not exist. ACID names the guarantees: atomic (all or nothing), consistent (rules hold), isolated (concurrent work does not mix) and durable (committed means saved).

Isolation levels decide how much concurrent transactions can see of each other's work. Relational databases are built around transactions; many NoSQL stores offer them in narrower forms.

More in Databases and storage

Keeping data correct

All 25 Databases and storage terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.