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
Salesforce MTSalesforce MT 

What is the query limit for @future method

Hi, What is the query limit for @future method and can i use future method to fetch more that 50,000 reocords
PINKY REGHUPINKY REGHU
Hi,
   Refer this link:
https://medium.com/@divakersingh_15355/salesforcce-future-methods-with-higher-limits-pilot-46dc3b44d24e
Hope this helps.
Ravi Dutt SharmaRavi Dutt Sharma
Limit for number of records in SOQL is 50k in both sync as well as async executions. There is a pliot program launched by Salesforce in which you can get 2x or 3x times the  normal limit. Refer below link:

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

Please mark it as the best answer if it resolves you issue.Thanks.
Niraj Kr SinghNiraj Kr Singh
Hi,

I think you can not get more than 50,000 records, because that is the soql limit either you can do it in normal methods or in future.

For further @future method limits, you can check with this below link or the link post by @PINKY REGHU
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_enhanced_future_overview.htm