You need to sign in to do that
Don't have an account?
Tanuj Tyagi
Getting Warning for governor Limit. Need Urgent Help !!
Hi All,
From past few days, after Winter 19 release.
We are getting regular Warning Emails in Production org related to Governor Limits .
Below is the sample Email :
Subject: Apex governor limit warning
Caused the following Apex resource warnings:
Number of query locator rows: 10000 out of 10000
Please let me know if they can be ignored or is it something to be taken care of ?
From past few days, after Winter 19 release.
We are getting regular Warning Emails in Production org related to Governor Limits .
Below is the sample Email :
Subject: Apex governor limit warning
Caused the following Apex resource warnings:
Number of query locator rows: 10000 out of 10000
Please let me know if they can be ignored or is it something to be taken care of ?
Check the batch class or apex class .. it may bebecauses of the data volume
Actually, Its not a batch Class. Normal Apex Class .
This is the code :
Database.QueryLocator ql = Database.getQueryLocator('select id from Object LIMIT 10000');
Any good alternative for this ?
Shall I increase the limit upto 50k or replace getQueryLocator with database.query() Or any other Approach ?
database.getQueryLocator in Salesforce returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex or used for displaying large sets in VF (allowing things such as pagination). In Batch Apex, if you use Database.getQueryLocator(), it supports upto 50 million records.
Thanks Raj