function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexander Zaytsev 1Alexander Zaytsev 1 

Batch apex to process unlimited number of records

I am working on a managed package where the customers would be able to create some 'Schedules' and based on those schedules, periodically, i want to add 'Events' to users' calendars.

What is the best architectural approach to make sure if the customer, FOR EXAMPLE, creates 50K schedules (Governor limit) each resulting in 2 calendar events (2*governor limit), my batch job can still process those?

 

sudheer gonuguntla 9sudheer gonuguntla 9
Batch job can process those 100K records. Please find the best approches to acheive 

https://salesforce.stackexchange.com/questions/84088/how-many-records-can-an-apex-batch-is-capable-of-processing