function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yuriy KovarskiyYuriy Kovarskiy 

Optimal data size for batch operations

What is the recommended batch size for insert / update operations in order to avoid EXCEEDED_RATE_LIMIT error?

What is the the maximum batch size for such operations?

I am interested in inserting/updating accounts, contacts, and opportunities.

Thanks,

Yuriy Kovarskiy

SuperfellSuperfell
for insert/update use batches of 200 items, unless you have an unusually large number of custom fields and you're populating all the fields (in which case you can potentially run into the max message size limit), in which case i'd cut it down to 100.