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
chris.phoenix1.3911270665504087E12chris.phoenix1.3911270665504087E12 

Does query honor batchSize?

We would like to write code for testing which fetches only a few records at a time, setting batchSize to 5 or 10 so we can test our queryMore code.

The API seems to be ignoring batchSize. Is this a known problem?

Sonam_SFDCSonam_SFDC
Hi Chris, there is a minimum value to the batchSize property which is 200 - believ this is the reason its ignoring the size you are providing: reference:  http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_queryoptions.htm