Configure region specific copies of the Links table
You can configure Content Delivery (CD) roles replicated to distant regions roles to use region-specific copies of the Links database table. You might want to do this to avoid network latency issues in scaled environments. Using region-specific copies of the Links table is not possible if the CD roles are separate publishing targets with individual content.
The Links table is in the Core database, and stores all links between individual items across databases (Core, Master, Web) and language versions. Also note that the Links table is called LinkDatabase (without s) in the Sitecore configuration files.
SQL Server transaction replication is the best way to configure region specific copies of the Links table. You can use the Azure active geo-replication feature for Azure Web App solutions.
To configure CD roles to use a local Links table:
-
In the
App_Config/ConnectionStrings.configfile, add an additional connection string for the local Links table: -
In the
App_Config/Include/folder, create a folder and name it, for example,MyPatchFiles/. -
In the
App_Config/Include/MyPatchFiles/folder, create a configuration patch file and name it, for example,DedicatedLinkDatabaseProvider.config. -
In the
DedicatedLinkDatabaseProvider.configfile, insert the following code and configureLinkDatabaseto use the new database connection string by changing thedefaultLinkDatabaseConnectionStringNameattribute: