Using the Bulk API with PK Chunking
You can use PK Chunking with the Bulk API to process large volumes of Salesforce data. PK Chunking uses the Id field as the offset field and returns chunks of data based on user-defined chunks of the Id field. For more information about PK Chunking, see the Salesforce documentation or this informative blog post.
When performing PK Chunking, the origin cannot process deleted records.
Use the following guidelines when using the Bulk API with PK Chunking to process existing data:
- SOQL query
- Use the following query guidelines:
- Include the Id field in the SELECT statement.
- Optionally include a WHERE clause, but do not use the Id field in the WHERE clause.
- Do not include an ORDER BY clause.
- Additional properties
-
Configure the following additional properties on the Query tab:
- Offset Field - The field to use for chunking. Must use the default Id field.
- Chunk Size - The range of values in the Id field to be queried at one time. The default is 100,000 and the maximum size is 250,000.
- Start ID - An optional lower boundary for the first chunk. When omitted, the origin begins processing with the first record in the object.