Skip to main content

In salesforce doc it's mentioned that for async we can fetch upto 10k records using querylocator. But in batch apex trail the statement says that "With the QueryLocator object, the governor limit for the total number of records retrieved by SOQL queries is bypassed and you can query up to 50 million records.".

Can some one explain me how is this possible.

 

#Apex  #Governerlimts  #Salesforce  #BatchClass

3 respuestas
  1. Sushil Kumar (UKG) Forum Ambassador
    26 feb 2024, 13:27

    As i mentioned above, in Batch apex, there are two contexts, One is start method(Here i believe it should be able to fetch upto 50 million records). Execute Context - Here it should only be able to fetch upto 10k as you mentioned. 

0/9000