24 Feb
2004
24 Feb
'04
8:21 p.m.
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