[Zope-dev] ZCatalog caching with memcached

Christian Theune ct at gocept.com
Sat Oct 25 08:52:04 EDT 2008


On Sat, 2008-10-25 at 14:43 +0200, Andreas Jung wrote:
> On 25.10.2008 14:37 Uhr, Christian Theune wrote:
> > Hi,
> >
> > On Fri, 2008-10-24 at 15:41 +0200, Hedley Roos wrote:
> >> The product is a monkey patch to Catalog.py. I'd love some feedback and
> >> suggestions.
> >
> > I'd love if this wouldn't be a monkey patch.
> >
> > Also, there is nothing that makes this integrate correctly with
> > transactions. Your cache will happily deliver never-committed data and
> > also it will not isolate transactions from each other.
> 
> The problem with memcached is that memcached isn't transactional. We 
> managed to solve this problem by implementing a cache tool (for CMF) 
> where where the set/get methods for the memcached participate in the 
> Zope transaction using a DataManager. I can provide the code if someone 
> should be interested.

In addition, you need to include a serial in your cache keys to avoid
dirty reads.

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20081025/37ec7483/attachment.bin 


More information about the Zope-Dev mailing list