Batch Apex
What is Batch Apex? Batch Apex is asynchronous execution of Apex code, specially designed for processing the large number of records and has greater flexibility in governor limits than the synchronous code. It allows you to define a job that can be divided into manageable chunks, where each chunk can be processed separately. For example, if you want to make a field update of all records in any object which is having more number of records, then governor limits restricts us to process that operation. Because in a single transaction we can only process 10,000 records. In batch apex, it will fetch all records which you want to perform the field update and divide them into a list of 200 records & every 200 records operation is performed separately. when to use Batch Apex? When you want to process large number of records on daily basis or even on...