In my haste to get a new batch class running I accidentally packaged it such that the
start() method returns an iterable (
List<SObject>) instead of a Query Locator. Bad developer, no Twinkie.
Annoyingly the interface is
global so that it can be invoked via anonymous apex inside of client orgs, and yet a client's org has too many rows in the queried object to run (> 50k). It seems that I don't have an option to overload this: even trying to use
@deprecated and adding a second
start() method that leverages a Query Locator does not work.
I've contacted support to see if I can get the class removed from the package since this class is only in a single org anyway, but can anyone think of a good way around the problem short of adding a second class?