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
Roth2842Roth2842 

Limits within batchable context

I am going through the developer docs (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm) as I work on my first batchable class.

 

Under the section about the start method it says:

... For example, a batch Apex job for the Account object can return a QueryLocator for all account records (up to 50 million records) in an organization. ...

 Does the 50 million record limit extend past the start method?

 

My current project calculates total opportunity value by lead source.  Because we are entering more then 10,000 leads in a months period, I must move the class out to a batchable class.  I select all of the leads that I am dealing with in the start(), and then identify and return the opportunities generated from these leads in the execute().

 

If I go over 10,000 rows in my execute() will error out, or do I have the full 50M for the entire class?