Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 12831

Classes implementing the `batchable` interface are used when there is a need to operate on a large number of data records which would normally be problematic due to the imposed governor limits.

1 vote

Making X amount of HTTP requests with a batch?

When faced with a similar requirement, I used a Queueable instead of a batch. … It also avoids the issue that a batch with a callout per record basically can't have a scope over 100 at most, but there's no way to enforce that from the class. …
IllusiveBrian's user avatar
7 votes
Accepted

how to write 2 queries in the start method of batch class based on condition

If you want to have one batch to work on both of those sets of data, you can add the query results to a List<sObject> and use that in your batch. …
IllusiveBrian's user avatar
0 votes

Making updates to mass records using batch apex faster

want to the query: query = 'SELECT **Account.Membership_Status__c**, End_Date_180_Prior__c, Pardot_End_Date_180_Prior__c, Pardot_Related_C_Account__c, AccountId, Id FROM contact'; Then, update your batch
IllusiveBrian's user avatar
0 votes

Database.Stateful does not work as expected when using instance variable of another class

I've tested this with the following code: public class StatefulBatch implements Database.Batchable<sObject>, Database.Stateful { private final StatefulBatchHelper helper = new StatefulBatchHelper …
IllusiveBrian's user avatar
0 votes

using today date in Database.getQueryLocator query String throwing errors

The format you want is YYYY-MM-DD, so global Database.QueryLocator start(Database.BatchableContext BC){ String todayDate = System.today().year() + '-' + System.today().month() …
IllusiveBrian's user avatar
6 votes
Accepted

How Custom Iterators with Iterable Work

The overall answer to this is that there is an Apex Batch Handler which controls batch class execution. …
IllusiveBrian's user avatar