






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































Summary
What is a Transaction?
- 1 $ ACCOUNT_ID BALANCE - 2 $ Summary
Atomicity
Isolation
Product 1 10 $
Product 2 20 $
Product 1, 50 Product 2, 80
We get $155 when it should be $ We read a “dirty” value that has not been committed
Product 1 10 $
Product 2 20 $
VALUES (‘Product 3’, 10, 1)
Product 1, 50 Product 2, 80
We get $140 when it should be $ We read a committed value that showed up in our range query
Product 3Product 3 1010 $1 1
Product 1 10 $
Product 2 20 $
We get $155 when it should be $ Our update was overwritten another transaction and as a result “lost”