[ZODB-Dev] ZEO and commits
Christian Robottom Reis
kiko at async.com.br
Fri Oct 24 11:03:41 EDT 2003
On Fri, Oct 24, 2003 at 04:56:14PM +0200, Antonio Beamud Montero wrote:
> I can't find this connection.sync() method, Need I to import any module?
No, connection is a ZODB Connection instance, which is what
database.open() returns.
> And if the other clients update the original object, is needed to
> connection.sync() in the original object process?
> The process are in differente machines:
If other clients update the original object, you have a conflict.
When you call sync(), the current transaction is aborted, and any
conflicting changes are discarded. So calling sync() and *then*
modifying the object is what you need to do.
This may not be exactly suited to your usecase; if you have high
concurrency, you'll need to consider conflict resolution carefully.
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
More information about the ZODB-Dev
mailing list