What does this setting do?
The following Sitecore.Links.ItemEventHandlers
methods check this setting (these are referenced from the corresponding event, e.g. item:copied
):
- OnItemCopied
- OnItemDeleted
- OnItemSaved
- OnItemVersionRemoved
In all cases, if Sitecore is mid-publish, these methods immediately exit and perform no action. I found no evidence of any additional day-to-day operations where the links database is updated (other than the rebuild action from control panel).
What do you mean by "mid-publish"?
Tracing this method up the call stack reveals that it's surprisingly simple- it merely checks if the Context.Site
is "publisher".
Would toggling the setting LinkDatabase.UpdateDuringPublish to false help alleviate some of the load during publish operations?
Toggling this setting to false will prevent all links database updates during publishing. In that case, yes, it will reduce the load on the database.
Because I was curious about real-world impact, I ran some tests locally to measure whether toggled true
or false
, it would speed up or slow down publishing. Unfortunately, my tests came up inconclusive. In other words, toggling the setting did not positively or negatively affect how long it took for the publish operation to complete.
Conclusion
If you are not leveraging the links database within your application code, there is no harm in toggling this to false
. But it likely won't make a significant difference in performance.