Activity Forums Salesforce® Discussions When to use Database.queryLocator in Batch Apex?

  • Aditya

    Member
    June 16, 2020 at 7:18 pm

    Use the Database. QueryLocator object when you are using a simple query to generate the scope of objects used in the batch job. In this case, the SOQL data row limit will be bypassed. Use the iterable object when you have complex criteria to process the records.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos