Introduction to Serializability in DBMS
Introduction to Serializability in DBMS
1. Initial values of the data items involved within a schedule must be the same.
2. Final values of the data items involved within a schedule must be the same.
3. The number of WR operations performed must be equivalent for the schedules involved.
Example:
Consider 2 schedules, Schedule1 and Schedule2:
The (non-serial) Schedule2 is considered as a view equivalent of the (serial) Schedule1, when the
3 rules of view serializability are satisfied. For the example shown above,
The Initial transaction of read operation on the data items A and B both begin at T1
The Final transaction of write operations on the data items A and B both end at T2
The number of updates from write-read operations are 2 in both the cases
Hence satisfying all the rules required, Schedule2 becomes view serializable w.r.t Schedule1.