Activity Forums Salesforce® Discussions How many times execute method is called in a batch class in Salesforce?

  • How many times execute method is called in a batch class in Salesforce?

    Posted by Anjali on May 6, 2020 at 8:25 AM

    How many times execute method is called in a batch class in Salesforce?

    Deepak replied 6 years ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    May 6, 2020 at 1:35 PM

    If we are processing 10,000 records and batch size is 100 then number of times a batch’s execute method will be called is 10000/100 = 100 times. This number comes from chunking on Salesforce side which is called as retrieveChunkSize.

Log In to reply.