[ZODB-Dev] Synchronizing connections
Jim Fulton
jim@digicool.com
Sat, 17 Mar 2001 16:02:33 -0500
Shane Hathaway wrote:
>
> Andrew Kuchling wrote:
> > Currently we run a single Quixote process that connects to a ZEO.
> > We'd like to run multiple processes, but then we run into a problem.
> > At the start of a request being serviced, each process needs to
> > synchronize its connection in order to see the current state of the
> > database; the only way to do this currently is to commit a trivial
> > transaction. The problem is that all the processes are then modifying
> > the same trivial object, so ConflictErrors occur fairly often.
>
> Connection.sync() perhaps?
Yes, but this was plumbed through to ZEO only recently I'm afraid.
You'll need to get recent ZEO and ZODB from CVS.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org