Re: Objects with varying classes

Christopher Lozinski <[email protected]> Wed, 26 Sep 2018 16:22:16 +0200
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
 

> On Sep 26, 2018, at 3:53 PM, Manuel Reinhardt <[email protected]> wrote:
> 
> I was wondering whether it has any impact on persistence that the object is apparently not saved directly in the BTree but in a Bucket.

A Tree is a collection of buckets.  Change the Tree a few buckets are changed.  Commit the transaction and those buckets are updated. 

As long as you are not changing the class of your object, you can edit it, save the transaction and all will be well.  If you are changing the class of your object, you better update the specific bucket it is in. 

I am not quite sure how to do that.  But if you dig into the Code, it should be pretty easy to figure out which bucket a particular object is located in. 

I hope that helps. 
Chris

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.