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
EagerToLearnEagerToLearn 

Query Limit Inside a Batch Apex?

Hi,
I know that apex batch query locator is capabile of 50 million rows but what is the limit on a query that I peform while inside my batch apex.  Lets say I have to query a table that has over 10K rows and I need to review that data per batch iteration?  Is the limit 50k or what?

Thanks for your support.
sachinarorasfsachinarorasf
Hi EagerToLearn,

Read the details from below URL:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Sachin Arora
www.sachinsf.com