Configure the batch size for the GetMappingsForIdFromDbCommand requests
Version: 10.2
The GetMappingsForIdFromDbCommand
method fetches catalog mapping entries in batches. The batch size is configurable and is set to 20 by default: <getCatalogMappingsForIdsBatchSize>20</getCatalogMappingsForIdsBatchSize>
.
To change the batch size of Sitecore IDs to fetch in a GetMappingsForIdFromDbCommand
request:
-
In the
App_Config\Include\Y.Commerce.Engine\CustomCommerce\Custom.Commerce.Engine.Connect.config
file (or in your own patch file), in the<commerceEngineConfiguration>
node, add a patch with the desired number of Sitecore Id's per batch, for example:RequestResponse<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> <sitecore role:require="Standalone or ContentDelivery or ContentManagement"> ... <commerceEngineConfiguration type="Sitecore.Commerce.Engine.Connect.CommerceEngineConfiguration, Sitecore.Commerce.Engine.Connect"> <!-- Specifies the batch size for the GetCatalogMappingsForIds request --> <getCatalogMappingsForIdsBatchSize patch:instead="getCatalogMappingsForIdsBatchSize">25</getCatalogMappingsForIdsBatchSize> </commerceEngineConfiguration>