The update operation of one transaction is replaced by the update operation of another transaction.
The current transaction can read the uncommitted data of another transaction.
Before this transaction is over, another transaction accesses and modifies the same data set. Due to the modification of the second transaction, the data may be inconsistent.
Included in Non-repeatable read.
First-level Lockdown Protocol
Transaction T must add an X lock to modify data A, and the lock will not be released until the end of T.
Solve Loss Modification problem because two transactions cannot modify the same data at the same time.
Second-level Lockdown Protocol
Transaction T is required to add an S lock when reading data A, and the S lock must be released immediately after reading.
Solve Read Dirty Data problem because if a transaction is modifying data A and an X lock is added, then the S lock can not be added and the data can not be read.
Third-level Lockdown Protocol
Transaction T is required to add an S lock when reading data A, and the S lock cannot be released until the transaction is over.
Solve Non-repeatable Read problem because when reading A, other transactions cannot X lock A, thus avoiding changes in data during reading.
READ UNCOMMITTED
Modifications in transactions are visible to other transactions even if they are not committed.
SUBMIT READ
A transaction can only read changes made by committed transactions.
REPEATABLE READ
Ensure that the result of reading the same data multiple times in the same transaction is the same.
Serializable
Force transactions to execute serially, so that multiple transactions do not interfere with each other and there will be no concurrency consistency problem.