DBMS Unit 3
DBMS Unit 3
Example
Three transactions—t1, t2, and t3—are active on a schedule "S" at once. Let's
create a graph of precedence.
Transaction - 1 Transaction - 2 Transaction - 3
(t1) (t2) (t3)
R(a)
R(b)
R(b)
W(b)
W(a)
W(a)
R(a)
W(a)
📌 Key Concepts:
1. Timestamp (TS):
o Assigned to each transaction when it begins.
o Can be based on system clock or a logical counter.
2. Each data item X has:
o read_TS(X): the largest timestamp of any transaction that successfully read X.
o write_TS(X): the largest timestamp of any transaction that successfully wrote to
X.
⚖ Advantages of Timestamping:
No deadlocks (non-blocking method).
Maintains serializability.
⚠ Disadvantages:
Higher abort rate (especially for older transactions).
Overhead of maintaining multiple timestamps per data item.
What is Database Recovery Management?
Database Recovery Management refers to the set of techniques used to restore a database
to a correct state after a failure. It ensures that all committed transactions are preserved, and
all uncommitted transactions are undone, thereby maintaining the ACID properties
(especially Atomicity and Durability).