Topic-1: Transaction
Topic-1: Transaction
Topic-1: Transaction
Transaction
Topics Covered
Transaction
ACID Property
Concurrency Control
Serializability of Scheduling
Transaction
Every view serializable schedule that is not conflict serializable has blind
writes.
Image source : Korth
Test for View Serializability
The precedence graph test for conflict Serializability cannot be used
directly to test for view Serializability.
– Extension to test for view Serializability has cost exponential in the
size of the precedence graph.
The problem of checking if a schedule is view serializable falls in the class
of NP-complete problems.
– Thus existence of an efficient algorithm is extremely unlikely.
Recoverable Schedules
Need to address the effect of transaction failures on concurrently
running transactions.
Recoverable schedule — if a transaction Tj reads a data item previously written by a
transaction Ti , then the commit operation of Ti appears before the commit operation
of Tj.
The following schedule (Schedule 11) is not recoverable if T9 commits immediately
after the read.
If T8 should abort, T9 would have read (and possibly shown to the user) an
inconsistent database state. Hence, database must ensure that schedules are
recoverable.