[ZODB-Dev] Re: BTree corrupted after conflict resolution

Marius Gedminas mgedmin at b4net.lt
Thu Mar 4 14:36:55 EST 2004


On Thu, Mar 04, 2004 at 01:08:42PM -0500, John Belmonte wrote:
> Casey Duncan wrote:
> >At the very least it should be a great big blinking "Enter at your own
> >risk" sign above the door.
> >
> >As a personal rule I never use anything but simple types in BTree keys,
> >because I know I stand little to no chance of getting it right
> >otherwise. I've used BTrees a lot and frankly I've never had anything
> >but a superficial reason to use persistent objects as BTree keys.
> 
> Note that this issue applies to BTree sets as well.  Is it unreasonable 
> to want a set of first-class persistent objects?

We solved with Connection.add by wrapping a set of OIDs and presenting
it as a set of persistent objects.  In fact Steve invented
Connection.add to solve exactly this problem.

Marius Gedminas
-- 
Mosher's Law of Software Engineering:
        Don't worry if it doesn't work right.
        If everything did, you'd be out of a job.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20040304/7ca36194/attachment.bin


More information about the ZODB-Dev mailing list