[ZODB-Dev] Items committed in one thread not seen in another thread?

Gwyn Evans gwyn.evans at gmail.com
Wed Mar 9 13:36:39 EST 2005


On Wed, 9 Mar 2005 15:11:14 -0300, Christian Robottom Reis
<kiko at async.com.br> wrote:
> On Wed, Mar 09, 2005 at 05:17:41PM +0000, Gwyn Evans wrote:

> > The persistance is done as below, where d = a dictionary -
> >
> >   self.dbRoot[recId] = d
> >   get_transaction().commit()
> 
> A thread has a local view of its object, and modifications made in other
> threads are not visible "automatically": you need to call sync() on the
> connection, or abort()/commit() a transaction.

  Thanks - I've already been committing the transaction as above (or
have I? Do I need to explicitly start one?) but I've not tried sync()
yet, so will investigate that...

Gwyn


More information about the ZODB-Dev mailing list