


































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!



































AKA [atomic transaction].
AKA [atomic transaction]. logical unit of work: Do or Do Not. App designer(you) creates an indivisible unit of db actions.
AKA [atomic transaction]. logical unit of work: Do or Do Not. App designer(you) creates an indivisible unit of db actions. A transaction can have Accesses and Modifications.
Commit = yes, save change. One way street Like when the pig becomes bacon.
INSERT INTO users (name, pass) VALUES (’alan’, PASSWORD(’ferret’) ) ; yyy COMMIT; Another Example: BEGIN WORK; INSERT INTO users (name, pass) VALUES (’alan’, PASSWORD(’ferret’) ) ; yyy ROLLBACK;
Use the InnoDB or BDB engines.
one complete unit smallest no reduce property: updates by transaction are all used or not
db should be consistent previous T db should be consistent after T property: after applying ACID T db is consistent.
Transaction fails ACID == BAD property: commited transaction means all updates are permanent.
Types: read,write sizes: database, table, row, column, field, index, system resource.