Sitecore Indexing Strategies for cm & cd.
Prem Murmu
Automation/AI/.Net/Sitecore/ReactJS/NextJS Freelance Consultant | Sitecore & Azure Certified
I recently deployed sitecore xp solution to client on premise servers, got chance to explore more on configuring cm and multiple cds and a solr server serving on all server.
So lets see how I configured for all indexes.
(Note: Sitecore Version: 10.3 & above)
I configured for CM server with the indexing as follows:
for Web index, you may have strategies as below:
<strategies hint="list:AddStrategy">
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/manual" role:require="(ContentManagement and !Indexing) or (ContentDelivery and !Indexing)" />
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsyncSingleInstance" role:require="Standalone or (ContentManagement and Indexing) or XMCloud or (ContentDelivery and Indexing)" />
</strategies>
I configured for all CD Servers with the indexing as follows:
For Web Index:
<strategies hint="list:AddStrategy">
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" />
</strategies>
These strategies will make sure you sitecore content appearing in all cd servers as soon content publising happening.
Difference between onPublishEndAsync and onPublishEndAsyncSingleInstance indexUpdateStrategies in sitecore cms
onPublishEndAsync:-
- Publishes updates asynchronously
- Multiple concurrent publish jobs possible
- Parallel processing of index updates
- Higher performance for large-scale publishing
领英推荐
- Better for distributed environments
onPublishEndAsyncSingleInstance:-
- Ensures single instance processing of index updates
- Prevents potential race conditions
- Guarantees sequential index updates
- More suitable for scenarios requiring strict order of updates
- Reduces risk of simultaneous index modifications
When to choose what?
it can be based on publishing volume, performance requirements and potential for concurrent publishing.
Recommendation: Select strategy based on specific use case and infrastructure configuration.
#sitecore #sitecoreindexing #sitecorecms #solr #sitecoresearch #sitecore #sugranchi