Why the log is written first
A database using write-ahead logging must write the log record for a change before writing the changed page itself.
What breaks if it writes the page first?
A database using write-ahead logging must write the log record for a change before writing the changed page itself.
What breaks if it writes the page first?