We have our analytics_index over 150 million documents now (with Solr on a standalone windows server). How can we stop Sitecore from optimizing the index? Solr says optimizing should only be done on fairly static indexes. (Also, it places a copy of the index in disk cache as it optimizes it, building a new index and the I/Ops on the disk is always through the roof.) Any way to tell Sitecore not to optimize the analytics index when it adds more documents to it? We noticed that Sitecore.ContentSearch.Solr.Index.Analytics.config has a TimedIndexRefreshStrategy of one minute for this index. Should we set that to nightly as well?
There is an agent,
Sitecore.ContentSearch.Tasks.Optimize, that controls which indexes are regularly optimized and how frequently. Open up your
<your_site>/sitecore/admin/showconfig.aspx and look for this agent. It should look something like the below:
<agent type="Sitecore.ContentSearch.Tasks.Optimize" method="Run" interval="12:00:00"> <indexes hint="list"> <index>sitecore_master_index</index> ... </indexes> </agent>
Take a look and see if there is an entry in the
<indexes> list for the
sitecore_analytics_index. If so, remove it from the list and the index should no longer be regularly optimized. If not, then scheduled optimization is likely not your issue, but rather on-demand (i.e. at the end of a rebuild) optimization.
If on-demand indexing is your issue, share with us the
<strategies> that you have configured for your