Recovery With Concurrent Transactions Last Updated : 15 Jul, 2025 Comments Improve Suggest changes 9 Likes Like Report Concurrency control means that multiple transactions can be executed at the same time and then the interleaved logs occur. But there may be changes in transaction results so maintain the order of execution of those transactions. During recovery, it would be very difficult for the recovery system to backtrack all the logs and then start recovering. Recovery with concurrent transactions can be done in the following four ways. Interaction with concurrency control Transaction rollback Checkpoints Restart recovery Interaction with concurrency control : In this scheme, the recovery scheme depends greatly on the concurrency control scheme that is used. So, to rollback a failed transaction, we must undo the updates performed by the transaction. Transaction rollback : In this scheme, we rollback a failed transaction by using the log. The system scans the log backward a failed transaction, for every log record found in the log the system restores the data item. Checkpoints : Checkpoints is a process of saving a snapshot of the applications state so that it can restart from that point in case of failure. Checkpoint is a point of time at which a record is written onto the database form the buffers. Checkpoint shortens the recovery process. When it reaches the checkpoint, then the transaction will be updated into the database, and till that point, the entire log file will be removed from the file. Then the log file is updated with the new step of transaction till the next checkpoint and so on. The checkpoint is used to declare the point before which the DBMS was in the consistent state, and all the transactions were committed. To ease this situation, 'Checkpoints' Concept is used by the most DBMS. In this scheme, we used checkpoints to reduce the number of log records that the system must scan when it recovers from a crash. In a concurrent transaction processing system, we require that the checkpoint log record be of the form <checkpoint L>, where 'L' is a list of transactions active at the time of the checkpoint. A fuzzy checkpoint is a checkpoint where transactions are allowed to perform updates even while buffer blocks are being written out. Restart recovery : When the system recovers from a crash, it constructs two lists. The undo-list consists of transactions to be undone, and the redo-list consists of transaction to be redone. The system constructs the two lists as follows: Initially, they are both empty. The system scans the log backward, examining each record, until it finds the first <checkpoint> record. Create Quiz Comment V vishalarya1701 Follow 9 Improve V vishalarya1701 Follow 9 Improve Article Tags : Computer Subject DBMS DBMS-Transactions and Concurrency Control Explore Basics of DBMSIntroduction of DBMS6 min readHistory of DBMS7 min readDBMS Architecture 1-level, 2-Level, 3-Level6 min readDifference between File System and DBMS6 min readER & Relational ModelIntroduction of ER Model9 min readStructural Constraints of Relationships in ER Model5 min readGeneralization, Specialization and Aggregation in ER Model4 min readIntroduction of Relational Model and Codd Rules in DBMS14 min readKeys in Relational Model6 min readMapping from ER Model to Relational Model5 min readStrategies for Schema design in DBMS6 min readRelational AlgebraIntroduction of Relational Algebra in DBMS8 min readSQL Joins (Inner, Left, Right and Full Join)4 min readJoin operation Vs Nested query in DBMS3 min readTuple Relational Calculus (TRC) in DBMS4 min readDomain Relational Calculus in DBMS4 min readFunctional Dependencies & NormalisationAttribute Closure in DBMS4 min readArmstrong's Axioms in Functional Dependency in DBMS4 min readCanonical Cover of Functional Dependencies in DBMS7 min readNormal Forms in DBMS5 min readThe Problem of Redundancy in Database3 min readLossless Join and Dependency Preserving Decomposition4 min readDenormalization in Databases4 min readTransactions & Concurrency ControlACID Properties in DBMS5 min readTypes of Schedules in DBMS5 min readConcurrency Control in DBMS3 min readGraph Based Concurrency Control Protocol in DBMS3 min readMultiple Granularity Locking in DBMS3 min readDatabase Recovery Techniques in DBMS4 min readDeadlock in DBMS4 min readAdvanced DBMSIndexing in Databases6 min readIntroduction of B Tree8 min readIntroduction of B+ Tree5 min readBitmap Indexing in DBMS3 min readInverted Index7 min readSQL Queries on Clustered and Non-Clustered Indexes6 min readFile Organization in DBMS4 min readPractice QuestionsLast Minute Notes - DBMS15+ min readDBMS Interview Questions with Answers15+ min readCommonly asked DBMS Interview Questions | Set 25 min readDatabase Management System - GATE CSE Previous Year Questions2 min read Like