0 votes
in Salesforce by
What is PK Chunking?

1 Answer

0 votes
by

PK Chunking is an advanced option that can be configured for Salesforce Bulk API tasks in a Source transformation.

If PK Chunking is enabled, then Salesforce internally generates separate batches based on the PK Chunking size given. Each batch is a small chuck of a bulk query created based on the Primary Key(ID) of the queried records.

It is recommended to enable PK chunking for objects with more than 10 million records. This improves performance.

For example, let’s say you enable PK chunking Account table with 10,000,000 records. Assuming a chunk size of 250,000 the query is split into 40 small queries. Each query is submitted as a separate batch.

...