written 8.4 years ago by | modified 2.6 years ago by |
Mumbai University > Computer Engineering > Sem 4 > Database Management System
Marks: 10 M
Year: Dec 2014, May 2014
written 8.4 years ago by | modified 2.6 years ago by |
Mumbai University > Computer Engineering > Sem 4 > Database Management System
Marks: 10 M
Year: Dec 2014, May 2014
written 8.4 years ago by |
A schedule is serializable if it is equivalent to a serial schedule.
Conflict serializability:
Consider the below operations-
i. Ii = read(P), Ij = read(P). Ii and Ij don’t conflict.
ii. Ii = read(P), Ij = write(P). They conflict.
iii. Ii = write(P), Ij = read(P). They conflict.
iv. Ii = write(P), Ij = write(P). They conflict.
T3 | T4 |
---|---|
Read(P) | |
Write(P) | |
Write(P) |
View serializability:
S and S` are view equivalent if the following three conditions are met:
i. For each data item P, if transaction Ti reads the initial value of P in schedule S, then transaction Ti must, in schedule S`, also read the initial value of P.
ii. For each data item P, if transaction Ti executes read (P)in schedule S, and that value was produced by transaction Tj, then transaction Ti must in schedule S` also read the value of P that was produced by transaction Tj.
iii. For each data item P, the transaction that performs the final write(P) operation in schedule S must perform the final write(P) operation in schedule S`.
Conflict Equivalence and Conflict Serializable Schedule
Conflict Equivalence :
Schedules are conflict equivalent if they can be transformed one into other by a sequence of non conflicting interchanges adjacent actions.
Conflict Serializable Schedule :
A Schedule is conflict serializable if it is conflict equivalent to any of serial schedule.
View Equivalent Schedule and View serializable schedule
View Equivalent Schedule :
Consider two schedules S1 and S2, they are said to be view equivalent if following conditions are true :
Initial read must be same. There are two transactions say Ti and Tj, The schedule S1 and S2 are view equivalent if in schedule S1, Ti reads A that has been updated by Tj, and in schedule S2, Ti must read A from Tj. i.e. write-read(WR) sequence must be same between S1 and S2. Final write operations should be same between S1 and S2. View serializable schedule :
A Schedule is view serializable if it is view equivalent to any serial schedule. The following two examples will illustrate how to find view equivalent schedule.