Recent questions tagged batch-apex

Description : When a BatchApexworker record is created?

Last Answer : For each 10,000 AsyncApexJob records, Apex creates one additional AsyncApexJob record of type BatchApexWorker for internal use.

Description : What is AsyncApexJob object?

Last Answer : AsyncApexJob is Represents an individual Apex sharing recalculation job. Use this object to query Apex batch jobs in your organization.

Description : What is Database.AllowCallouts?

Last Answer : To use a callout in batch Apex, you must specify Database.AllowsCallouts in the class definition

Description : What is Database.State full interface?

Last Answer : To maintain variable value inside the Batch class, Database.Stateful is used.

Description : How to track the details of the current running Batch using BatchableContext?

Last Answer : You can check the AsyncApexJob.Status using the JobId from the Database.BatchableContext.

Description : What is the Database.BatchableContext?

Last Answer : BatchableContext Interface is Represents the parameter type of a batch job method and contains the batch job ID. This interface is implemented internally by Apex.

Description : What is the scope of execute method?

Last Answer : The maximum value for the optional scope parameter is 2,000

Description : How many times execute method is called?

Last Answer : Execute method is called for each batch of records.

Description : .What is the use of execute method?

Last Answer : Contains or calls the main execution logic for the batch job.

Description : What is the Database.QueryLocator?

Last Answer : If we use a Database.QueryLocator, the governor limit for the total number of records retrieved by SOQL queries is bypassed. (Default 50,000 It allow up to 50 million records).

Description : Define the methods in batchable interface?

Last Answer : Start: global Database.Querylocator start (Database.BatchableContext bc){} Execute: global void execute(Database.BatchableContext bc,List ){} Finish: global void finish(Database.BatchableContext bc) {}

Description : What is Database.Batchable interface?

Last Answer : The class that implements this interface can be executed as a batch Apex job.

To see more, click for the full list of questions or popular tags.