Re: why do you apply undo before redo?
Date: Tue, 20 Apr 2004 10:00:28 GMT
"Wayne Warren" <wwarren_at_MANGLEbirdstep.com> wrote in message
> I'm not sure that the book is correct. I wrote a transaction processing
> system (released on 1993 as Velocis Database Server, now called Birdstep
> Server) which performs redo operations just prior to undo operations. I
> assure you that in practice it works.
> If transactions have maintained proper Isolation (the "I" in ACID) from
> another, then the order of redo/undo should be irrelevant.
But we still have to worry about getting the database to a consistent state, regardless of active interleaving at time of failure. The use of caches means that some commited transactions might not have been written to disk, or in other cases, parts of uncompleted transactions did get written to disk and need to be undone. Though there might be interleaving across transactions at the time of failure, the DBMS doesn't need to consider some of these transactions if they were propery persisted. Thus some serializable schedule might no longer apply.
> specifics may dictate the order, but the transaction recovery concept does
> "Ryan" <rgaffuri_at_cox.net> wrote in message
> > I'm reading a generic database textbook and it states that when
> > are recovering undo is applied before redo. It doesn't say why. Does
> > know?
Received on Tue Apr 20 2004 - 12:00:28 CEST