• Home
  • ACID Properties

    ACID properties are fundamental concepts in Relational Database Management Systems (RDBMS) that ensure reliable and consistent transaction processing. The ACID acronym stands for Atomicity, Consistency, Isolation, and Durability. Let's explore each property in more detail:


    1. Atomicity:

    Atomicity guarantees that a transaction is treated as an indivisible unit of work. It ensures that either all the operations within a transaction are executed successfully and committed to the database, or none of them take effect at all. If any part of a transaction fails or encounters an error, the entire transaction is rolled back, and the database is restored to its previous state before the transaction started. This ensures that the database remains consistent and avoids leaving it in an intermediate or invalid state.


    2. Consistency:

    Consistency ensures that a transaction brings the database from one valid state to another valid state, adhering to predefined integrity constraints and rules. These constraints define the relationships, dependencies, and business rules that data in the database must satisfy. Before and after a transaction, the database should maintain its integrity and consistency. If a transaction violates any constraints or rules, it is rolled back, and the database is restored to its previous consistent state.


    3. Isolation:

    Isolation guarantees that each transaction is executed in isolation from other concurrent transactions. It ensures that the intermediate state of a transaction is not visible to other transactions until the changes are committed. Isolation prevents interference or conflicts between concurrent transactions and maintains data integrity. Different isolation levels, such as Read Uncommitted, Read Committed, Repeatable Read, and Serializable, define the degree of isolation and concurrency control in the database.


    4. Durability:

    Durability guarantees that once a transaction is committed and the changes are made permanent, they are durable and will persist even in the event of system failures, crashes, or power outages. Committed data is stored in non-volatile storage (e.g., disk) and can be recovered and reconstructed in case of failures. Durability ensures the reliability and recoverability of the database, as committed changes are considered to be safely stored and will not be lost.


    By adhering to the ACID properties, RDBMS provides a robust and reliable framework for transaction processing. These properties ensure that data integrity is maintained, concurrency issues are handled, and the system can recover from failures to preserve the consistency and durability of the database.



    About the Author



    Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

    We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





     PreviousNext