CS FundamentalsVery hardGATE CS
After ARIES analysis the dirty page table holds P1 (recLSN 40), P2 (recLSN 25) and P3 (recLSN 60); the last checkpoint began at LSN 30. Where does the redo pass start, and what happens to the log record at LSN 35 that updates P1?
- A. At LSN 30; the LSN 35 update is redone
- B. At LSN 25; the LSN 35 update is redone because it is after the start
- C. At LSN 25; the LSN 35 update is skipped without reading P1 because 35 < recLSN(P1) = 40
- D. At LSN 40; LSN 35 is never examined
Correct answer: C. At LSN 25; the LSN 35 update is skipped without reading P1 because 35 < recLSN(P1) = 40
Redo starts at the smallest recLSN in the dirty page table, 25. A record is skipped if its page is not dirty or its LSN is below that page's recLSN; 35 < 40 means P1's copy on disk already contains it, so no page read is needed.
More DBMS and SQL questions
- A DBMS uses deferred database modification: no change reaches the database before its transaction commits (NO-STEAL), but committed…
- A B+ tree stores 1,000,000 keys. Each internal node has at most 50 children (at least 25, except the root, which needs at least 2), and…
- R occupies 1000 blocks and S 500 blocks; 50 buffer blocks are available. Ignoring the cost of writing the result, what does a Grace hash…
- A table has 1,000,000 rows stored 20 per block. An unclustered B+ tree index fetches each matching row with one random block read (ignore…
- R(A, B) = {(1, x), (2, y), (3, z)} and S(B, C) = {(x, 5), (x, 6), (w, 7)}. How many tuples are in the natural full outer join of R and S?
- Customer(cid, city) LEFT OUTER JOIN Orders(oid, cid, amt) on cid is followed by the selection amt > 100. An optimiser wants to push this…