You need to sign in to do that
Don't have an account?

Batch Apex vs. Apex Scheduler
Hi Everyone,
Can anyone point me to the difference between Batch Apex and Apex Scheduler at the usage level? I see difference at the programming level; however, still not sure of when to use one over the other.
Thank you all in advance,
Apex scheduler would be used when you need something to happen at a particular point in time.
Batch apex would be used when you need to process a large number of records that would otherwise break governor limits.
There's no reason why you wouldn't combine them - I have a scheduled apex class that archives and summarizes the previous months data by executing batch apex.
All Answers
Apex scheduler would be used when you need something to happen at a particular point in time.
Batch apex would be used when you need to process a large number of records that would otherwise break governor limits.
There's no reason why you wouldn't combine them - I have a scheduled apex class that archives and summarizes the previous months data by executing batch apex.