[Zope] "Pausing" ZCatalog and re-indexing later

Andreas Jung lists at zopyx.com
Fri Aug 11 11:20:53 EDT 2006



--On 11. August 2006 17:10:29 +0000 krokodylek at tenbit.pl wrote:

>
> Hi :-)
>
> The system I am working on is using a ZCatalog with some indexes (over
> 10) for faster searching.
>
> Unfortunatelly there are some use cases, where I have to add really many
> new objects to ZODB. It works, but very slowly.

What kind of objects?

>I suspect that this is
> because when I add an object to Folder (with _setObject) it gets indexed
> - couple thousands of objects multiplied by over 10 indexes = looooong.

Consider using CatalogQueue to defer indexing.

>
> Am I guessing right or am I completely lost? ;-)

No idea, you might investigate your bottleneck(s) using ZopeProfiler.


-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060811/8eea2dfd/attachment.bin


More information about the Zope mailing list