Working With Bulk Data (Batch Apex) PowerPoint PPT Presentation

presentation player overlay
About This Presentation
Transcript and Presenter's Notes

Title: Working With Bulk Data (Batch Apex)


1
WORKING WITH BULK DATA (BATCH APEX)
2
WHAT IS BATCH APEX IN SALESFORCE?
  • Batch Apex is an asynchronous execution of apex
    code in Salesforce.
  • It allows you to define a single job that can be
    divided into manageable chunks, where query
    chunks can be processed separately.
  • Batch Apex is used to process many records.
  • It will retrieve all the records you want to
    update or perform operations.

3
WHEN TO USE BATCH APEX?
  • You can go to Batch Apex when you want to process
    many records daily or even at regular intervals.
  • Also, you can apply a batch apex when you want an
    asynchronous operation.
  • Batch Apex is revealed as an interface that the
    developer must implement.
  • Batch jobs can be programmed at runtime using
    Apex.

4
WHEN TO USE BATCH APEX?
  • We must implement the database when using Batch
    Apex. Batchable (Salesforce-provided) interface,
    followed by programmatic invoking of the class.
  • Batch Apex work on more than 10,000 records,
    because it divides them into sub-tasks, wherever
    every subtask may contain up to 2000 records.

5
WHAT IS DATABASE.BATCHABLE INTERFACE?
  • To use Batch Apex, you must write the Apex class
    that applies to the Database. Batchable
    Interface. The Database.Batchable Interface
    consists of three methods, which should be
    implemented, as follows
  • The Start Method
  • Execute Method
  • Finish Method

6
WHAT IS A DATABASE.BATCHABLE INTERFACE?
  • Batches of records typically execute in the order
    that they are received from the start method.
  • The order in which batches of records execute, on
    the other hand, is determined by a variety of
    factors.
  • The Blueflame Labs is one of the best Salesforce
    Consulting Partners providing a wide range of
    valuable Salesforce Services to clients.
  • Read more at the Blueflame Labs' Blog Section.
  • https//www.theblueflamelabs.com/working-with-bulk
    -data-batch-apex/
Write a Comment
User Comments (0)
About PowerShow.com