Question: ASAP! Write-ahead logging is an important way to handle database crash. In the lecture, we have talked about three approaches: undo only, redo only, and

 ASAP! Write-ahead logging is an important way to handle database crash.In the lecture, we have talked about three approaches: undo only, redo

ASAP!

only, and redo/undo. Figure 2 shows the redo/undo approach. Answer the followingquestions: Figure 2: An Example of Redo/Undo Logging a. [5 points] Can

Write-ahead logging is an important way to handle database crash. In the lecture, we have talked about three approaches: undo only, redo only, and redo/undo. Figure 2 shows the redo/undo approach. Answer the following questions: Figure 2: An Example of Redo/Undo Logging a. [5 points] Can we switch the step (8) and (9) in Figure 2? Explain why. b. [5 points] Can we switch the step (9) and (10) in Figure 2? Explain why. c. [10 points] Figure 2 forgets to flush logs when it is committed. Now if you need to add the command of "Flush Log" to indicate that the transaction is committed, where is the earliest step? Choose the answer from the following: (i) after step 9; (ii) after step 10; (iii) after step 11. Explain why. Write-ahead logging is an important way to handle database crash. In the lecture, we have talked about three approaches: undo only, redo only, and redo/undo. Figure 2 shows the redo/undo approach. Answer the following questions: Figure 2: An Example of Redo/Undo Logging a. [5 points] Can we switch the step (8) and (9) in Figure 2? Explain why. b. [5 points] Can we switch the step (9) and (10) in Figure 2? Explain why. c. [10 points] Figure 2 forgets to flush logs when it is committed. Now if you need to add the command of "Flush Log" to indicate that the transaction is committed, where is the earliest step? Choose the answer from the following: (i) after step 9; (ii) after step 10; (iii) after step 11. Explain why

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!