View Serializability
View Serializability
1 9/24/
ICT3212 Advanced Database Management Systems 2020
View Serializability
1. If in S1, T1 reads the initial value of the data item, then in S2 also,
T1 should read the initial value of that same data item.
2. If in S1, T1 writes a value in the data item which is read by T2, then
in S2 also, T1 should write the value in the data item before T2 reads
it.
3. If in S1, T1 performs the final write operation on that data item, then
in S2 also, T1 should perform the final write operation on that data
item.
2 9/24/
ICT3212 Advanced Database Management Systems 2020
View Serializability
3 9/24/
ICT3212 Advanced Database Management Systems 2020
View Serializability
9/24/2020
ICT3212 Advanced Database Management Systems 4
Example - View Serializable Schedule
9/24/5
ICT3212 Advanced Database Management Systems 2020
Example - View Serializable Schedule
Dependency Graph
• T1 first reads A and T2 first updates A. So, T1 must execute before T2 and
thus the dependency T1 → T2.
• Final update on A is made by the transaction T3. So, T3 must execute
after all other transactions. Thus the dependency (T1, T2) → T3.
• From write-read sequence, the dependency T2 → T3.
9/24/6
ICT3212 Advanced Database Management Systems 2020
Summary
View Serializable
9/24/7
ICT3212 Advanced Database Management Systems 2020