DEV Community

Nick Langat
Nick Langat

Posted on

ACID properties of a database system.

This is a quick refresher on the acid properties of database system.
ACID stands for:

  1. Atomicity
  2. Consistency
  3. Isolation
  4. Durability Let's go over each one in detail.

ATOMICITY

This ensures that if a database transaction fails or one of its queries fails, then the whole transaction should fail and the database will be reverted to its previous state.

CONSISTENCY

This ensures that a database is in a valid state after a given transaction as per the constraints enabled in the database table.

ISOLATION

This ensures that concurrent transactions will result in the same results in the database if the same set of transactions were executed sequentially.

DURABILITY

This ensures that once a transaction has been committed to the database successfully, it will always be available irrespective of a catastrophic event such as a power cut or network failure.

Top comments (0)