Acid principle:
The abbreviation for the four basic elements that a database transaction performs correctly. Contains: atomicity (atomicity), consistency (consistency), isolation (isolation), persistence (durability).
- The atomicity of a transaction means that a transaction is either executed or not executed. That means a transaction can't be executed in half and stop.
- Transactional consistency means that the operation of a transaction does not change the consistency of the data in the database
- The independence of a transaction is also known as isolation, which means that more than two transactions do not have a state of interleaving. Because this can cause inconsistent data
- The persistence of a transaction is when the transaction is successfully executed, and the changes made to the database are persisted in the database and are not rolled back for no reason.
Four basic elements for database transactions to execute correctly