what is business

A transaction is a series of operations performed as a logical unit. A logical unit of work must have four properties, called ACID (Atomicity, Consistency, Isolation, and Durability) properties, and
only then can it become a transaction. The characteristics of the transaction:
(1) Atomicity, the transaction must be an atomic unit of work; for its data modification, either all or none are executed.
(2) Consistency , when a transaction is completed, all data must be kept in a consistent state. In a relational database, all rules must be applied to the modification of a transaction to maintain the integrity of all data.
At the end of the transaction, all internal data structures (such as B-tree indexes or doubly linked lists) must be correct.
(3) Isolation , modifications made by concurrent transactions must be isolated from modifications made by any other concurrent transactions. The state of the data when the transaction views the data is either
the state before another concurrent transaction modifies it, or the state after another transaction modifies it. The transaction does not view the data in the intermediate state. This is called serializability because it enables the starting data to be reloaded
and a series of transactions to be replayed so that the data ends up in the same state as the original transaction executed.
(4) Persistence , after the transaction is completed, its impact on the system is permanent. This modification will persist even in the event of a system failure.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326482402&siteId=291194637