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
zabahzabah 

Batch Size Strategies?

Until now, I've been fine with a batch size of less than 2000 (the max as described by the API). However, I have many more records than 2000 and am about to embark on several queries that will require me to exceed that max number.

I can run several queries in sequence, but it'll be a pain to keep track of which records I've included in the query and which one's I haven't. Does anyone have any other ideas on how to work around the 2000 max number?
DevAngelDevAngel
Look at the documentation for queryMore.