DBMS 4
DBMS 4
Module 4
Transaction Processing
1. Lost Update.
2. Dirty Read.
3. Unrepeatable Read.
Lost Update: -
1. Dirty Read:-
A=500
*Schedule S3*
Unrepeatable Read:-
A=500.
*Schedule S4*
Eg.
*Schedule S5*
S5 is a serial schedule
because S1 contains T1 & T2. Both these transactions are working
serially
*Schedule S6*
S6 is a serializable schedule because it is equivalent to serial
schedule S5.
1. Conflict &
2. View Serializability.
1. Conflict Equivalent :-
Iv. Because (i) & (ii) are conflicting operations. But this sequence
of 1 & 2 operations is different in S7 & S8.
Vii.
Conflict Serializable:-
1) T1
T2 Precedence Graph
No edge. One of the instructions must be written.
2) T1 T2
3) T1 T2
4) T1
T2
5) T1 T2
T1 performs 1st instruction
6) T1 T2
3. The read operations are hence said to see the same view in
both schedules.
Eg.
T2 reads the value of X, which has been written by T1. T1
commits & then T2. As per definition, commit of T1 must appear
before commit of T2. So, the schedule is called as a recoverable
schedule.
References: