[ZODB-Dev] Discrete synchronization with ZEO

Jim Fulton jim at zope.com
Mon May 1 14:05:02 EDT 2006


Dieter Maurer wrote:
> Arve Knudsen wrote at 2006-4-23 22:44 +0300:
> 
>>I already use ZODB as a local persistency service for my Python  
>>application, now I'm considering ZEO as a distributed data source. The  
>>thing is I don't want to keep my local object cache synchronized at all  
>>times with the remote database, my application should only synchronize in  
>>a controlled operation and then work with the disconnected representation.  
> 
> 
> I fear the ZODB is not made for this use case.

No need for fear. It doesn't peel carrots either. :)

Arve, you want to do this at a much higher level than
ZEO.

> Synchronization is in the form of invalidation messages
> deeply embedded into the ZODB.
> You may simply delay the invalidation messages and
> thereby delay synchronization. However, you will problably
> suffer from the lack of prefetching support and the need
> to synchronize any modification immediately with the ZODB.

IOW, no disconnected writes.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the ZODB-Dev mailing list