---
title: "GetMappingsForIdFromDbCommandリクエストのバッチサイズを設定してください"
slug: "configure-the-batch-size-for-the-getmappingsforidfromdbcommand-requests"
abstract: "バッチに含まれる決定性SitecoreアイテムIDの数を設定する方法。"
---
# GetMappingsForIdFromDbCommandリクエストのバッチサイズを設定してください

GetMappingsForIdFromDbCommandメソッドはカタログマッピングエントリをバッチ単位で取得します。バッチサイズは設定可能で、デフォルトで20に設定されています:<getCatalogMappingsForIdsBatchSize>20</getCatalogMappingsForIdsBatchSize>。

GetMappingsForIdFromDbCommandリクエストでSitecore IDのバッチサイズを取る方法:

-   App\_Config\\Include\\Y.Commerce.Engine\\CustomCommerce\\Custom.Commerce.Engine.Connect.configファイル(またはご自身のパッチファイル)の<commerceEngineConfiguration>ノードで、バッチごとに希望する数のSitecore Idを持つパッチを追加します。例えば:
    
    <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>