How to process more than 50 million records in batch

A batch class that uses Database.QueryLocator as the return type of start method or returns Database.getQueueryLocator() is capable of processing 50 million records.
What if you want to process more than 50 million records ?
We cannot process more than 50 million records i.e. if the start method passes more than 50 million records to scope of execute method then batch is immediately terminated.
In sort batch classes cannot process more than 50 million records it is terminated.

Comments

Popular posts from this blog

Cascade deleting too many records