CS FundamentalsHardGATE

After a crash, the analysis phase of ARIES recovery scans the log forward from the last checkpoint to rebuild the transaction table (active transactions) and dirty page table. Why must analysis start from the checkpoint rather than from the very beginning of the log?

  1. A. It doesn't need to start from the checkpoint; starting from the beginning is just as correct but slower in general, since all the transaction/page information needed is already summarized at the checkpoint, making an earlier start unnecessary extra work
  2. B. Because the log before the checkpoint has already been permanently deleted in every system
  3. C. Because transactions before the checkpoint can never be redone
  4. D. Because analysis is the only phase that uses the log at all

Correct answer: A. It doesn't need to start from the checkpoint; starting from the beginning is just as correct but slower in general, since all the transaction/page information needed is already summarized at the checkpoint, making an earlier start unnecessary extra work

A checkpoint record stores a snapshot of the active-transaction table and dirty-page table at that point, so analysis can resume from there instead of re-deriving the same information from the entire log history — this is purely a recovery-time efficiency: scanning from the true beginning would (in principle) rebuild the same tables but waste time re-processing already-summarized history.

More DBMS and SQL questions

Exams that ask this topic