DEV Community

Cover image for Valid Database properties(ACID).
Adeyemi Racheal
Adeyemi Racheal

Posted on

Valid Database properties(ACID).

ACID

  • Atomicity
  • Consistency
  • Isolation
  • Durability Are a set of properties of database transactions that guarantee data validity despite errors, power failure, and other catastrophe and are processed reliably.

Atomicity:- A transaction is treated as a single, indivisible unit. Either all operations within the transaction are completed successfully, or none of them are. This prevents a transaction from leaving the database in an inconsistent state.

Consistency: A transaction must only bring the database from one consistent state to another. This means that the database must adhere to all defined rules and constraints before and after the transaction.

Isolation: Multiple transactions can occur concurrently without interfering with each other. Each transaction operates as if it were the only one accessing the database, preventing conflicts and ensuring data integrity.

Durability: Once a transaction is committed, its changes are permanent and will survive system failures or crashes. The database will recover the committed changes even if it needs to be restarted.

  • By adhering to ACID principles, databases can ensure that:
    • Data remains accurate and reliable.
    • Transactions are processed correctly and efficiently.
    • The database system is resilient to failures and can recover gracefully.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Try REST API Generation for MS SQL Server.

DreamFactory generates live REST APIs from database schemas with standardized endpoints for tables, views, and procedures in OpenAPI format. We support on-prem deployment with firewall security and include RBAC for secure, granular security controls.

See more!

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay