6

If I access SObject records via batching as defined here, does that count as 1 call for the purposes of daily API limits, or does each subrequest within the batch count as 1?

1 Answer 1

7

From the linked Batch documentation:

Each subrequest counts against rate limits.

So, if you perform 25 subrequests, they will each contribute to the overall limit independently.

Another relevant part of the same document:

Subrequests execute serially in their order in the request body. When a subrequest executes successfully, it commits its data. Commits are reflected in the output of later subrequests. If a subrequest fails, commits made by previous subrequests are not rolled back.

Notice how each sub request is being processed and committed in isolation. Hence they count towards the limits separately.

2
  • Ugh, totally missed that. Thanks. I'll accept as soon as the timer lets me.
    – Ken H.
    Jun 25, 2015 at 19:52
  • No problem. I think the main intention of the REST API batching is to reduce the the round-trip delay. Jun 25, 2015 at 20:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .