Database Engineering · Keeping data correct
Transactions and ACID
A transaction groups several changes so the database keeps all of them or none, even if something crashes halfway. ACID names the four guarantees that make this safe.
- Time15 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






OK both changes become visible together, and the locks are released.
Atomicity all of the changes, or none of them.
Isolation concurrent transactions don't see each other's unfinished work.
Durability once COMMIT returns, a crash cannot undo it.