QuestionQ68

VerifiedSalesforce Integration Capabilities

A customer imports data from an external system into Salesforce through Bulk API. The jobs use batch sizes of 2,000 and run in parallel mode. The batches frequently fail with the error “Max CPU time exceeded.” A smaller batch size will resolve this error.

What should be considered when using a smaller batch size?

Explanation

Smaller Bulk API batches reduce the work and CPU consumption of each individual batch, but they create more batches for the same data volume. The additional batch overhead can increase the total time needed to run the bulk jobs. Salesforce notes that larger batches can enable faster data loads when they do not hit limits or time out.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!