• Jason Geiger
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

These two documents tell me opposite things, so I was curious if I could have them cleared up.

When I execute a Bulk API call, does it count against my API Limit?

My reading of this link says no:
http://help.salesforce.com/HTViewHelpDoc?id=integrate_api_rate_limiting.htm
"These limits do not apply to functional limits of Salesforce APIs that are not tied to API calls. An example would be the Batch Limit for Bulk API, which is governed by its own limit, and not monitored as an API usage limit."

Buy this link specifically says yes:
https://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_concepts_limits.htm
"Bulk API use is subject to the standard API usage limits. Each HTTP request counts as one call for the purposes of calculating usage limits."

So which is it?

And then as a followup, in my situation, why would I ever use the Bulk API over just writing my own APEX REST service?

My situation: I am updating records on 3 SObjects every 5 minutes or so from an external system. I'm updaing only a few fields, and only updating changes since the last update, which will be fairly minimal in most cases. Anyway, the Bulk API costs me 4 calls per object (Start job, batch, end job, query batch results), so 12 API calls, plus login.

But I can include all of that data in a single rest call to a custom APEX service, which could return results, and that would cost me one API call, plus login.

There are certainly cases where Bulk API would be better but I am thinking for my case, I should just roll my own. Even once i get very large datasets, I can split them up into 12 chunks before Bulk is less costly.

Thanks
 

These two documents tell me opposite things, so I was curious if I could have them cleared up.

When I execute a Bulk API call, does it count against my API Limit?

My reading of this link says no:
http://help.salesforce.com/HTViewHelpDoc?id=integrate_api_rate_limiting.htm
"These limits do not apply to functional limits of Salesforce APIs that are not tied to API calls. An example would be the Batch Limit for Bulk API, which is governed by its own limit, and not monitored as an API usage limit."

Buy this link specifically says yes:
https://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_concepts_limits.htm
"Bulk API use is subject to the standard API usage limits. Each HTTP request counts as one call for the purposes of calculating usage limits."

So which is it?

And then as a followup, in my situation, why would I ever use the Bulk API over just writing my own APEX REST service?

My situation: I am updating records on 3 SObjects every 5 minutes or so from an external system. I'm updaing only a few fields, and only updating changes since the last update, which will be fairly minimal in most cases. Anyway, the Bulk API costs me 4 calls per object (Start job, batch, end job, query batch results), so 12 API calls, plus login.

But I can include all of that data in a single rest call to a custom APEX service, which could return results, and that would cost me one API call, plus login.

There are certainly cases where Bulk API would be better but I am thinking for my case, I should just roll my own. Even once i get very large datasets, I can split them up into 12 chunks before Bulk is less costly.

Thanks
 

Hi there

It's been very frustrating because I cannot post questions with Windows 8 on this discussion forum after it's been renovated.

Also when I typed a few keywords and the search results pop up, I click on any of the search results but there won't be anything happening to it.

I have to use my desktop (which is Windows XP) in order to post stuff on to this forum.

I wonder if anybody has the same issue?  I'm running Windows 8, Chrome.    (I understand this is probably not the right place to post this question but I don't know who to ask)

Thanks
King