On Mon, Mar 19, 2012 at 4:36 PM, Marius Gedminas <mar...@gedmin.as> wrote:
> On Mon, Mar 19, 2012 at 02:04:34PM -0300, Sebastian Wain wrote:
> As Alan said, you need a connection.sync() here.
> I believe calling transaction.begin() again at this point would also do
> that (just remember that transaction.begin() implicitly aborts the
> previous transaction, so don't do that if you have uncommitted changes
> you want to keep).
sync should be deprecated. :)
transaction.begin() is better. Both sync and begin abort the existing
transaction. sync is a holdover from the days when ZEO sometimes
didn't have it's own thread.
Remember that with multi-version concurrency control, you always
see the database as it was at the beginning of the transaction. If you
want to see updates, you need to start a new transaction.
For more information about ZODB, see http://zodb.org/
ZODB-Dev mailing list - ZODB-Dev@zope.org