> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/data-migrator/data-migrator-ja/tenpurto/tenpurtodezain/rekdono.md).

# 移行レコード上限の設定

## ![](https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2FcfMTqg4Brbm9baWutclZ%2FSummary2-Small-Icon.svg?alt=media\&token=d1cf162d-c02d-4184-988e-7f7350e450fc) 概要

Data Migrator では、移行中に転送されるルートオブジェクトレコードの数を制限できます。これは、本番環境からレコード上限の低いサンドボックス環境へデータを移動する場合に特に便利です。以下の手順では、Migration Record Limit 機能を有効にする方法を説明します。

### 重要なレコード制限に関する考慮事項

この **制限** 値は、ルートオブジェクトレコード数にのみ適用されます。テンプレート内の他のオブジェクトは、Limit 設定に関係なく、移行に任意の数のレコードを含めることができます。

その結果、移行中に転送されるレコードの総数は、多くの場合 Limit 値の何倍にもなります。例:

* テンプレートには 5 つのオブジェクトが含まれています: 1 つのルートオブジェクトと 4 つの子オブジェクト。
* ルートオブジェクトには 100 レコードの Limit が設定されています。
* ソース組織には 1,000 件のルートオブジェクトレコードがあり、各子オブジェクトにはルートレコードごとに 50 件のレコードが含まれています。
* 移行が実行されると、転送されるレコードの総数は次のように計算されます:
  * **100** （ルートオブジェクトレコード） × **4** （子オブジェクト） × **50** （子オブジェクトごとのレコード数）
  * 転送されるレコード総数: **20,000**

子レコードによって総レコード量が増加するため、Limit を設定する前に、各ルートレコードに関連付けられている子レコードの平均数を見積もってください。この見積もりを使用して、 **制限** 値をターゲット組織の容量に合うように選択します。

{% hint style="warning" %}

#### ルートレコード制限とレコードマッピングの組み合わせ

ルートレコード制限が設定されている場合、Data Migrator は移行が実行されるたびに、その制限された数のレコードを取得するために Salesforce 組織をクエリします。ルートオブジェクトのレコード総数がその制限を超える場合、Salesforce によるクエリ実行方法の都合により、返されるレコードの集合は移行ごとに異なる場合があります。

その結果、ルートレコード制限をレコードマッピングと組み合わせると、毎回異なるレコードのサブセットが移行される可能性があるため、ターゲット組織内のルートレコード数が移行のたびに増加する原因となることがあります。最終的には、ソース内のすべてのレコードがターゲットに移行されます。
{% endhint %}

## ルートオブジェクトの制限を設定

{% stepper %}
{% step %}

### テンプレートを選択

1. クリック **テンプレート** を左側のサイドバーメニューからクリックします。
2. ルートオブジェクト制限を設定するテンプレートをクリックします。

   <div align="left"><figure><img src="https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2FKvXfkOuruUdTS74fEKNB%2FSettingMigrationRecordLimits-S01-01.png?alt=media&amp;token=4401433d-bbf1-4d33-8f50-d24ce62c13ce" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### 制限を設定

{% hint style="warning" %}
のみ **ROOT** オブジェクトにはオブジェクト **制限** 設定があります。
{% endhint %}

1. その **ROOT** オブジェクトをクリックします。

   <div align="left"><figure><img src="https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2FryAM5uMKcR8jw01lW3fm%2FSettingMigrationRecordLimits-S02-01.png?alt=media&amp;token=20c408da-fcd4-4da5-83a2-3af011f58879" alt="" width="563"><figcaption></figcaption></figure></div>
2. その **設定** タブ。
3. クリック **制限を追加** の **制限** セクション。

   <div align="left"><figure><img src="https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2Fgo57EWbMc1OzJd6FjZxa%2FSettingMigrationRecordLimits-S02-02.png?alt=media&amp;token=dd0339d2-5be8-4a9e-9cca-99284dca118a" alt="" width="563"><figcaption></figcaption></figure></div>
4. レコード制限を **制限** 数値ボックスに入力します。

{% hint style="info" %}
制限を削除するには、 **マイナス** ボタンを Limit の右側にあるものをクリックします。
{% endhint %}

5. クリック **保存**.

   <div align="left"><figure><img src="https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2F9WGxSOe13541g75EhUdT%2FSettingMigrationRecordLimits-S02-03.png?alt=media&amp;token=1a25d088-bf45-491e-b433-9498edf55733" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### テンプレートを保存

制限を設定したら、テンプレートを保存します。

1. クリック **テンプレートを保存** をクリックして変更を保存します。

   <div align="left"><figure><img src="https://1278659608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaxzColPOlNbsq4imqpd%2Fuploads%2FT1t2n1zakh47B7avUIrd%2FSettingMigrationRecordLimits-S03-01.png?alt=media&amp;token=c02f87c7-ead4-49ba-859b-386c19819e3b" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/data-migrator/data-migrator-ja/tenpurto/tenpurtodezain/rekdono.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
