[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction
From: |
Thomas Keller |
Subject: |
Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer |
Date: |
Mon, 24 Sep 2007 11:19:46 +0200 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20070728) |
Markus Schiltknecht schrieb:
> Thomas Keller wrote:
>>> http://www.sqlite.org/cvstrac/wiki?p=UndoRedo might be a good
>>> starting point.
>>
>> Doesn't this violate the ACID properties of a normal transaction
>
> Uh huh? The above link describes a temporary table "holding the
> information needed to undo/redo changes to the database". That certainly
> does not pose any problems regarding ACID properties.
If a revision, which is added to a monotone database, is recorded as
several single inserts and/or other operations which itself run inside a
transaction, you can't say for sure that a decomposition of this single
transaction into several SQL commands, which are then recorded and
applied backwards without any transaction mechanism will never somehow
introduce database inconsistencies.
Sure, this may not be a problem at all if the database you're applying
the redo on is not used by a second process, but Zack proposed this for
Ralf's NETSYNC use case AFAIR.
Thomas.
--
only dead fish swim with the stream: http://thomaskeller.biz/blog
Am Anfang war das Wort: http://www.schäuble-muss-weg.de
- [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Ralf S. Engelschall, 2007/09/23
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Ralf S. Engelschall, 2007/09/24
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Markus Schiltknecht, 2007/09/25
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Ralf S. Engelschall, 2007/09/25
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Nathaniel Smith, 2007/09/25
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Nathaniel Smith, 2007/09/25
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Ralf S. Engelschall, 2007/09/25
- Re: [Monotone-devel] [RFC] Monotone NETSYNC Hook Extension & Abstraction Layer, Nathaniel Smith, 2007/09/25