Here’s how Batch Apex works under the hood. Let’s say you want to process 1 million records using Batch Apex. The execution logic of the batch class is called once for each batch of records you are processing.
To know more, visit-https://qrsolutions.com.au/salesforce-asynchronous-apex-using-batch-apex/