[Zope] Caching Catalog results for performance
Dieter Maurer
dieter at handshake.de
Tue Feb 24 15:21:21 EST 2004
Heimo Laukkanen wrote at 2004-2-24 16:30 +0200:
> ... caching for ZCatalog searches ...
>Has anyone else done similar or thought about doing it?
I have implemented caching. I am using a dictionary (keyed by
paths) of dictionaries (keyed by textual query representations; values
are triples [searchTime, lastAccessTime, result])
in a module namespace.
"searchTime" is used to ignore outdated results, "lastAccessTime"
is used to flush old cache entries.
Drawback: the cache cannot be (easily) controlled across
ZEO clients.
--
Dieter
More information about the Zope
mailing list