Hi,
When we do a search on a ZCatalog we have the message below. We work with Zope 2.6.2 and our Catalog have more than 200 000 objects referenced.
We think our catalog is corrupted but we would correct it.
Anybody have the same problem ?
An idea for fix it ?
Thank
Eric Brun
Type d'erreur : KeyError Valeur : 182975046
Trace : Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module App.special_dtml, line 61, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_In, line 465, in renderwb Module DocumentTemplate.DT_In, line 749, in sort_sequence Module Products.ZCatalog.Lazy, line 155, in __getitem__ Module Products.ZCatalog.Catalog, line 149, in __getitem__ KeyError: 182975046
Eric Brun wrote:
An idea for fix it ?
Have you tried updating the catalog from it's advanced tab?
Not sure how that'd pan out on 200,000 objects though...
cheers,
Chris
Eric Brun wrote at 2004-2-26 17:59 +0100:
... When we do a search on a ZCatalog we have the message below. We work with Z= ope 2.6.2 and our Catalog have more than 200 000 objects referenced.
We think our catalog is corrupted but we would correct it. ... Type d'erreur : KeyError =
Valeur : 182975046 =
... Module Products.ZCatalog.Lazy, line 155, in __getitem__ = Module Products.ZCatalog.Catalog, line 149, in __getitem__ = KeyError: 182975046 =
This indicates an inconsitency between an index and the set of catalogued objects.
When you have a good indication, which index contains the inconsistency, you can just "reindex" this index. This may be significantly faster then reindexing the complete catalog. Moreover, conflict probability might be (slightly) smaller.