[ZODB-Dev] Copying persistent objects between databases

Thomas Guettler hv at tbz-pariv.de
Tue Nov 23 04:02:27 EST 2004


Hi,

I need to copy some objects from one database to an other.
Both are accessed with ZEO.
It will use one thread.  Are there any pitfalls?

I would like to abort the (readonly) transaction which reads the data
from the source and commit the transaction which writes the
data to the destination.

Which transaction does get_transaction() return?

Is this possible at all? 

I could write the objects to pickles
and read them again, this would avoid two open
connections. But the first solution would be better.

Version: ZODB 3.2.1

Thanks in advance,
 Thomas



More information about the ZODB-Dev mailing list