Gravatar for

Question by sholmesby, Oct 27, 2015 9:52 AM

Slow initial index rebuild with a large amount of Sitecore fields

We're using Coveo on an existing Sitecore installation. The Sitecore instance has been around for many years, and has been worked on by many teams, and as a result, has a lot of templates, with a lot of fields. Also, there are 5 'web' targets, in addition to the core and master database.

We're using Sitecore 7.1, so we have 7 Coveo indexes. (This would be much more if we were using Sitecore 8+). Each index is using the default setup for each database, where everything is indexed.

As we've been rebuilding these indexes one by one, we've noticed a severe slowness to each rebuild.

Looking at the logs, the indexing won't actually start until all of the fields for the database have been added to the respective field set in Coveo. The logs initially would say:-

Adding 500 to the field set.

but are now saying

Adding 1 to the field set.

every 5 minutes. I assume this slows down because for each field, it's checking all of the existing fields to make sure it's not already added. It may even be checking fields in existing field sets…as my final index has now taken over a day to create the field set, and hasn't even started indexing yet.

Is the large field set the case of our slowness (completed web indexes show around 9600 fields in each field set)? Is there any way to speed this up? Will rebuilds be quicker after the initial one, because the fieldset won't have to be recreated?


1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Oct 27, 2015 11:09 AM

Hi Sean,

9600 fields by field set is a huge quantity of fields! I think you are experiencing a problem where the CES configuration is bigger than the default cache size for it. When this happens, configuration changes are slower the bigger the configuration is growing.

Can you scan your CES system logs to find the last message of that type: "The ConfigObjectCache is swapping to disk. Performance might be adversely affected. Consider increasing the ConfigCacheSize registry value to [number of bits required]".

This will indicate the suggested number of bits CES thinks is enough to store your CES configuration in cache. I suggest you to increase this number to plan for future grow of your configuration.

Then, follow this KB article to set the new configuration cache size:

I think you will need to restart the CES service after the modification. Stopping might be long because of that cache problem.

On a side note, each time an indexing operation will occur in Sitecore (rebuild, new item, item modified, item deleted, publish…), the fields sets will be synchronized. You will see a spike in network usage as all the fields configuration will be downloaded by Coveo for Sitecore through the Coveo Admin Service to be compared with the Coveo for Sitecore fields configuration. If no changes are required, the fields won't be sent back to CES. If changes are required, only the fields to change will be sent to CES.

Coveo for Sitecore synchronizes the fields at the beginning of each indexing operation to ensure an up to date configuration at any moment. We will introduce a configurable synchronization delay in the next releases to avoid synchronizing too often.

I hope this helps!


Gravatar for

Comment by sholmesby, Oct 27, 2015 11:35 AM

Hi Jeff, Unfortunately there is no mention of the ConfigObjectCache in any of the CES logs (I checked Index, IndexEngine, System and Tagging). I can see the report from the CacheMediator, and none of those caches are anywhere near full (and ConfigObjectCache isn't listed in there).

Thanks for the info on the how the field sets are synced.

Gravatar for

Comment by sholmesby, Oct 27, 2015 12:02 PM

It looks like we never had that registry setting on the server in the first place. Initial tests have shown that if we add the registry value, just with a low number, only then we see the errors in the logs. We're now turning that value up to see if it fixes the slowness.


Gravatar for

Comment by sholmesby, Oct 27, 2015 12:34 PM

We've added that registry value, and sufficiently increased in, and now see our fields get added super-quickly. Thanks for your help!

Ask a question