[ZODB-Dev] Re: [Dev] ZODB is not a Storage Technology (Re: other formats )

Barry A. Warsaw barry@python.org
Sat, 9 Nov 2002 12:37:16 -0500


>>>>> "JA" == John Anderson <john@osafoundation.org> writes:

>            Storages which have undo support (such as filestorage) have
>            a pack method which basically copies all objects forward until
>            there is a single current set.  Then discards anything not in
>            the current set.

    JA> Does it copy "in place" so that if you pulled the plug while
    JA> in pack your file is corrupted?

Not FileStorage.  It makes a copy in a temporary file and then flips
them when it's finished.  A storage like Berkeley's Full does in-place
packing, but it uses BerkeleyDB transactions to make sure the database
is always consistent.

-Barry