[ZODB-Dev] merging databases containing multidatabase references

Christian Theune ct at gocept.com
Fri Apr 24 02:02:54 EDT 2009


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

-- 
Christian Theune · ct at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20090424/6adc5759/attachment.bin 


More information about the ZODB-Dev mailing list