Re: Committing rolling back many objects at once?

[prev] [thread] [next] [Date index for 2005/01/21]

From: Sam Vilain
Subject: Re: Committing rolling back many objects at once?
Date: 02:05 on 21 Jan 2005
Perrin Harkins wrote:
> No, you can only rollback or commit everything you did on a certain
> database connection.

Some databases (even MySQL/InnoDB!) also support SQL SAVEPOINTS.

So you can mark multiple points through your transactions and then later
go back with ROLLBACK TO SAVEPOINT FOO;

They might not release any row-level locks / consistent read copies
held.

Of course, you should be highly suspicious of even normal ROLLBACK,
one of those features difficult to get right and seldom tested to the
levels that are required.  SAVEPOINTS will no doubt be even worse.  But
that's just the pessimist in me speaking :-).
        -- 
        Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)

Committing rolling back many objects at once?
Peter Speltz 18:03 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Perrin Harkins 18:06 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Peter Speltz 18:15 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Sam Vilain 02:05 on 21 Jan 2005

Re: Committing rolling back many objects at once?
Perrin Harkins 04:03 on 21 Jan 2005

RE: Committing rolling back many objects at once?
Addison, Mark 15:22 on 26 Jan 2005

RE: Committing rolling back many objects at once?
Peter Speltz 17:43 on 26 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52