You need to sign in to do that
Don't have an account?
zabah
Batch Size Strategies?
Until now, I've been fine with a batch size of less than 2000 (the max as described by the API). However, I have many more records than 2000 and am about to embark on several queries that will require me to exceed that max number.
I can run several queries in sequence, but it'll be a pain to keep track of which records I've included in the query and which one's I haven't. Does anyone have any other ideas on how to work around the 2000 max number?
I can run several queries in sequence, but it'll be a pain to keep track of which records I've included in the query and which one's I haven't. Does anyone have any other ideas on how to work around the 2000 max number?
Use the query and queryMore methods to iterate through a large set of records. If all you want to do is get recent changes, use the getUpdated method to get a list of ID's that have changed, and then retrieve() to get the records themselves, 200 at a time. This does not work for some of the objects (notablly OpportunityHistory and Assets), so a generalized technique might be to use the SOQL query for all records.
If you want a productize solution to this, Relational Junction is a command line interface for Salesforce replication.There is zero coding required and the schema is automatically built and maintained for you.