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.
3 respostas
Sushil Kumar (UKG) Forum Ambassador
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.