On Monday 23 Sep 2002 9:28 am, Luca Olivetti wrote:
Toby Dickenson wrote:
This is something I don't like about Zope: that the index isn't just an index. If it wasn't so expensive to get the original objects there would be no need to keep around this (duplicated,redundant) data.
In indexes, yes, that's not really redundant, is an index after all. But metadata? It seems it is just a workaround to a limitation of the zodb.
The limitations are not in the zodb, but in the objects which are being indexed. Having the ZCatalog cache methods is useful if the methods are slow, or the objects large. Folders do the same thing in a less flexible way; they always cache the metatype and id of their contained objects. If you are indexing lightweight objects with fast methods then you dont need to use ZCatalog metadata. Unlike Folders, ZCatalog gives you the choice.