Lecture 16: Atomicity via Logging
Lecture 16 Outline
- Introduction
- Motivating Example
- Basic Idea
- How to Use a Log for Transactions
- Performance of Log
- Cell Storage
- Performance of Log + Cell Storage
- Improving Performance
- What about Un-undo-able Actions?
- Summary
Lecture Slides
Reading
- Book section 9.3
Recitation 16: Log-Structured File System (LFS)
- Read “Log-structured File Systems (PDF)” by R. & A. Arpaci-Dusseau
- Log-Structured File System (LFS) Assignment
Hands-on Assignment 6: Write Ahead Log (WAL) System
(Not available to OCW users.)
Lecture 17: Fault Tolerance: Isolation
Lecture 17 Outline
- Introduction
- Serializability
- Conflict Serializability
- Conflict Graphs
- Interlude
- Two-phase Locking (2PL)
- Performance Improvement: Reader-Writer locks
- Another Possible Performance Improvement: Giving up on Conflict Serializability
- Summary
Lecture Slides
Reading
- Book sections 9.4 before 9.4.1 and 9.5
Recitation 17: Databases
- Read “Concurrency Control and Recovery” by M. J. Franklin
- Databases Assignment