Schedules
For a set of transactions produces an execution order of operations such that
- Every operation
appears also in ‘s operations in are ordered the same way as in
Goal
Produce a correct schedule with maximal parallelism
If
will appear to precede will see all updates made by will not see any updates made by
will appear to follow will see ‘s updates will not see ‘s updates
Correct: Schedule appears to clients that the transactions are executed sequentially
Serializable Schedules
Equivalent to some serial execution of the same transactions
Conflict Equivalence
All conflicting operations for two schedules are ordered the same way
Two operations conflict if they
- Belong to different transactions
- Access the same data item
- At least one of them is a write operation
Schedule
View Equivalence
Preserves initial reads and final writes
- Allows more schedules
- Is NP-hard to diagnose
Serialization Graph
- Nodes
corresponding to the transactions of - Edges
whenever an operation for transaction occurs prior for transaction in , where and are conflicting operations
Theorem: Schedule