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
Rajesh ShahRajesh Shah 

Governor Limits - Understanding scaling

I was just going through the governor limits and these was written in point no. 6

 

These limits scale with trigger batch size. The limit is multiplied by the number of records submitted. For example, if your

batch process contains 200 records, your script may retrieve as many as 20,000 records.

 

I didn't got the meaning of the scaling. Can somebody please explain?

e r i c.ax249e r i c.ax249

I'm having an issue with this statement as well.   This is in the Apex Doc for Summer 09:

 

Total number of records retrieved by SOQL queries 1,0006

 

And at the bottom it says:

 

6 These limits scale with trigger batch size. The limit is multiplied by the number of records submitted. For example, if your

batch process contains 200 records, your script may retrieve as many as 20,000 records.

 

How is 1,000 x 200 = 20,000???   It's supposed to be 200,000....

 

I guess I'll have to test by actually inserting records to see if it's 20,000 or 200,000.

Message Edited by e r i c on 07-21-2009 02:01 PM
Rajesh ShahRajesh Shah

I finally understood what that statement meant. You can check the following link to understand it:

 

Link

e r i c.ax249e r i c.ax249
Thank you. Also, I was right about the typo.  The statement in footnote 6 should say 200,000, not 20,000.  I verified this with System.debug statements when processing batches of 200 records.