Monday, March 23, 2015

Transactions Control in SQL & PostgreSQL

Transactions control is the most important thing for the Data Integrity.
Transaction record is one or more related changes to the database that are made at once.

Properties of Transactions


  • Atomicity:
    ensures that all operations within the work unit are completed successfully; otherwise, the transaction is aborted at the point of failure, and previous operations are rolled back to their former state.

  • Consistency:
    ensures that the database properly changes states upon a successfully committed transaction.

  • Isolation:
    enables transactions to operate independently of and transparent to each other.

  • Durability:
    ensures that the result or effect of a committed transaction persists in case of a system failure.

No comments:

Post a Comment