On Thu, 2009-04-23 at 15:02 -0700, David Glick wrote:
> I have a multidatabase of 3 databases containing a handful of  
> multidatabase references.  (This was created out of a combination of  
> naivety along with a desire to be able to work with smaller files if I  
> need to pull down a local copy of the database from the server.)  Of  
> course, now I am running into trouble because I cannot pack one of the  
> databases without occasionally having an object get garbage collected  
> that is still referenced from another database, which leads to  
> POSKeyErrors when I try to load the object containing that reference.
> Having now realized the folly of trying to split things into multiple  
> databases, I would really like to merge these 3 databases back into  
> 1.  Any ideas for how I could go about this?  Based on 
> http://docs.zope.org/zope3/Code/ZODB/cross-database-references.txt/index.html 
>   and some experimentation, multi-database references are not  
> supported by the import/export code.  Do I have other options?

I think it should be possible to write a tool that merges one database
into another. This needs some processing on the database objects as
their OIDs (and thus the internal references) need to be reorganized.


Christian Theune · c...@gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development

Attachment: signature.asc
Description: This is a digitally signed message part

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to