Thanks Christian.
With a little rooting around based on your advice I have got the independent 
saving working.
Thanks for your help.

-----Original Message-----
[] On Behalf Of Christian Theune
Sent: 14 May 2010 09:31
Subject: Re: [ZODB-Dev] Multiple independant ZODB

On 05/14/2010 10:06 AM, Matthew Noble wrote:
> I have only just started to use ZODB and have been able to use it with
> ease so far.
> I want to be able to have access to multiple ZODB databases at the same
> time that are completely independent.
> What I cannot see how to do is to keep the changes to the objects from
> each database separate - that is making the transaction commits only
> occur for one database at a time even if changes have occurred to
> multiple databases between commits.
> Can the transactions be made specific to a particular database or
> connection?


The default transaction functions in transaction.commit/abort/... work 
with a transaction manager that selects the active transaction based on 
the thread from which it is called.

Whenever you open a connection using you can pass in a 
different transaction manager and thus get different transactions with 
as many databases as you like.


Christian Theune ·
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -

This e-mail and any attachment may contain confidential and/or privileged 
information. If you have received this e-mail and/or attachment in error, 
please notify the sender immediately and delete the e-mail and any attachment 
from your system. If you are not the intended recipient you must not copy, 
distribute, disclose or use the contents of the e-mail or any attachment. 
All e-mail sent to or from this address may be accessed by someone other than 
the recipient for system management and security reasons or for other lawful 

Xype Limited is registered in England and Wales under company number 04516192. 
The company's registered office is Unit 1 Brabazon Office Park, Golf Course 
Lane, Filton, Bristol, BS34 7PZ
For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -

Reply via email to