Rollback
Undoing all writes of a failed transaction, to leave the database as it was.
Example
A transaction wrote 2 of 3 changes and failed: the rollback erases those 2.
Test yourself: Rollback
Transactions
A ___ undoes every write of a failed transaction.
If the transaction made 2 of its 3 changes before failing, the rollback undoes both and the database goes back to how it was.
Transactions
A transaction fails because another had the same row locked for 30 ms. What should you do?
The lock is temporary: 30 ms later the other transaction finishes. Retrying 1 or 2 times will almost certainly work.
0/2
â–¶ Play