> I am updating an item in a separated thread but when it finishes the new
> value is not updated in the same object in the main thread.

You need to call sync() on the connection object to see changes from
another thread.


> In the example below root['counter'] starts in 0, is incremented in the new
> thread but it remains in 0 in the main thread.

if your increment a counter its best the counter be of type, BTrees.Length

For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to