0% found this document useful (0 votes)
19 views

Deferred Update Transaction Recovery

The document discusses deferred update transaction management in database systems, emphasizing the importance of ACID properties for data integrity. It explains log-based recovery, highlighting the differences between deferred and immediate updates, and outlines the recovery process after a crash. In deferred update recovery, only changes from committed transactions are applied, while uncommitted transactions are discarded.

Uploaded by

mayurijadhav2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Deferred Update Transaction Recovery

The document discusses deferred update transaction management in database systems, emphasizing the importance of ACID properties for data integrity. It explains log-based recovery, highlighting the differences between deferred and immediate updates, and outlines the recovery process after a crash. In deferred update recovery, only changes from committed transactions are applied, while uncommitted transactions are discarded.

Uploaded by

mayurijadhav2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Deferred Update Transaction

Management – Log Entries and


Recovery
DBMS | Semester 4 | Computer
Engineering | Mumbai University
Introduction to Transaction
Management
• • Transactions are sequences of operations on
a database.
• • Ensure ACID properties: Atomicity,
Consistency, Isolation, Durability.
• • Key for maintaining data integrity in multi-
user environments.
What is Log-Based Recovery?
• • Uses logs to record changes made by
transactions.
• • Helps recover data in case of crashes.
• • Supports rollback of incomplete transactions
and redo of committed ones.
Deferred vs Immediate Update
• Deferred Update:
• • Updates are not applied to the DB until
transaction commits.
• • Reduces need for undo operations.

• Immediate Update:
• • Updates applied during transaction
execution.
• • Requires both undo and redo logs.
Given Log Entries
• [START T1]
• [START T7]
• [WRITE T1, A, 100]
• [WRITE T7, B, 200]
• [COMMIT T1]
• [WRITE T7, C, 300]
• [COMMIT T7]
Crash After Log Entry 6
• • Crash occurs after [WRITE T7, C, 300] but
before [COMMIT T7].
• • T1 has committed; T7 has not.
• • Use deferred update recovery strategy.
Recovery in Deferred Update
• • Apply updates of committed transactions
only.
• • T1 committed → Apply changes (A = 100).
• • T7 not committed → Discard changes (B and
C remain unchanged).
Final Database State
• • A = 100 (from T1, committed).
• • B = original value (T7 uncommitted).
• • C = original value (T7 uncommitted).
Summary
• • Deferred update avoids undo operations by
delaying updates until commit.
• • During crash recovery, only committed
transactions are redone.
• • Uncommitted transactions are ignored.
Thank You
• Prepared for: DBMS - Semester 4
• University: Mumbai University
• Topic: Log-Based Recovery using Deferred
Update

You might also like