[ZODB-Dev] lazy BTreeItems
    Dieter Maurer 
    dieter at handshake.de
       
    Sun Dec 11 14:28:55 EST 2005
    
    
  
Victor Safronovich wrote at 2005-12-10 13:21 +0500:
> ...
>I`ll want to migrate my large object containers from Folder to BTreeFolder2, but my
>code have many next places:
>
>for id in container.objectIds():
>   if some_condition:
>       container._delObject(id)
>
>or
>
>container.manage_delObjects( container.objectIds() )
>
>Be careful with migration of such type.
Yes.
If you want to avoid surprising behaviour, you would
not use "BTreeFolder2" directly but derive a folder of
your own from "BTreeFolder2" and listify the "ObjectManager" methods.
-- 
Dieter
    
    
More information about the ZODB-Dev
mailing list