/img/liang.png

わざと零した 夢で描いた,今に寝そべったままで 時効を待っている

CMU 15-445 Lecture #21: Database Crash Recovery

CMU 15-445 Database Systems Lecture #21: Database Crash Recovery Crash Recovery The DBMS relies on its recovery algorithms to ensure database consistency(C), transaction atomicity(A), and durability(D) despite failures. Each recovery algorithm is comprised of two parts: Actions during normal transaction processing to ensure that the DBMS can recover from a failure Actions after a failure to recover the database to a state that ensures the atomicity, consistency, and durability of

CMU 15-445 Lecture #20: Database Logging

CMU 15-445 Database Systems Lecture #20: Database Logging Crash Recovery 情景:数据库运行到一半没电了 Recovery algorithms are techniques to ensure database consistency(C), transaction atomicity(A), and durability(D) despite failures(example no power) The key primitives that used in recovery algorithms are UNDO and REDO. Not all algorithms use both primitives. UNDO: The process of removing the effects of an incomplete or aborted

CMU 15-445 Lecture #18: Timestamp Ordering Concurrency Control

CMU 15-445 Database Systems Lecture #18: Timestamp Ordering Concurrency Control Timestamp Ordering Concurrency Control 纯用锁很影响性能,锁是一个悲观的方法 乐观的方法:用时间戳 If $TS(T_i) < TS(T_j)$, then the DBMS must ensure that the execution schedule is equivalent to the serial schedule where $T_i$appears before $T_j$ . Multiple implementation strategies: →