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
tom Azizitom Azizi 

Bulk API vs Regular REST API Limits

Hi there, 

I developed a test project to sync my DB with salesforce Users table with REST API. For this test I just had 5 users. I want to know how many users I can read within one request?  what is the optimum number of records we can get per HTTP request in regular rest API? 
How can I realize that Bulk API is better feature for me to use (considering I just need to work with User table in SF)

Appreciate your help

P.S Most links in Bulk API page doesn't work: e.g Auick Start and Sample Code https://developer.salesforce.com/page/Bulk_API
daniel_hdaniel_h
The REST API will return a maximum of 2000 records at a time (https://help.salesforce.com/HTViewSolution?id=000181883&language=en_US). If your query has more than that, then you need to GET the next set of records. You probably won't have a large number of users, so this may be ok for you. When you start getting query results of around 10,000 records, then I think you should use the bulk API. The bulk API (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_concepts_limits.htm) lets you retrieve records one GB worth at a time.