Skip to main content

๐Ÿ—“๏ธ 01112024 2123
๐Ÿ“Ž

ACID

Atomicโ€‹

Atomicity controls guarantee that all the steps in a transaction are completed successfully as a group

If any steps between the transactions fail, all other steps must also fail or be reverted

TermDescription
commitsuccessful completion of a transaction
abortfailure of a transaction

Consistentโ€‹

The transaction preserves the internal consistency of the database

If you execute the transaction all by itself on a database thatโ€™s initially consistent, then when the transaction finishes executing the database is again consistent

Isolatedโ€‹

The transaction executes as if it were running alone, with no other transactions

TermDescription
serializabilityeffect of running a set of transactions is the same as running them alone

Usually implemented by locking specific rows in the table

Durableโ€‹

The transactionโ€™s results will not be lost in a failure


References