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

Gwyn Evans gwyn.evans at gmail.com
Wed Mar 9 15:48:07 EST 2005


On Wed, 9 Mar 2005 15:32:14 -0500, Tim Peters <tim at zope.com> wrote:
> You're always "in" a transaction, but that's true of _all_ threads you're
> running, and different threads are "in" different transactions.  The thread
> in which you're doing the commit() is in no trouble here, but presumably you
> were never crossing a transaction boundary in the thread you hoped would see
> the changes committed by the former thread.  Yhat latter thread is in a
> transaction too, and won't see any changes until it also crosses a
> transaction boundary, or ...

 Ah, now I see, thanks - I guess I was assuming there was a sort of
'push' from the transaction commit to the other threads, rather than
the 'refresh' that's needed.

Gwyn


More information about the ZODB-Dev mailing list