spring-social-salesforce icon indicating copy to clipboard operation
spring-social-salesforce copied to clipboard

Specificify batchSize

Open Ksushik opened this issue 5 years ago • 2 comments

Hello, It would be very nice to have opportunity to specify batchSize https://help.salesforce.com/articleView?id=000323582&language=en_US&type=1&mode=1

Thanks ahead

Ksushik avatar Jan 02 '20 18:01 Ksushik

Sounds like a good idea

jottley avatar Jan 02 '20 18:01 jottley

Notes:

  • We need to add an additional Integer parameter to allow setting of the batch size. In order to not break backward compatibility a new public QueryResult query method that can override the existing method should be added.
  • The existing getForObject method used does not support setting headers. This should be changed to an exchange method.
  • The header that should be added when setting the batchSize is Sforce-Query-Options the value of the header should be batchSize=
  • The default size is 2000. This is also the max. The minimum size is 200.

jottley avatar Jan 02 '20 19:01 jottley