You need to sign in to do that
Don't have an account?
Filikin
Time limit exceeded on a single SOQL statement
Hi,
I have a visual force page that displays the number of records available for processing - a single number with one SOQL statement behind it:
List<aggregateResult> recordsLeft = [select count(ID) toProcess from Assessment__c where Processed_for_SPSS__c = false and Assessment_Date__c > 2006-01-01 ];
I get a time limit exceeded error nine times out of ten when I try to display the page.
Assessment_Date__c is indexed.
I have about 20,000 records
Is there anything I can do to speed this up?
I have a visual force page that displays the number of records available for processing - a single number with one SOQL statement behind it:
List<aggregateResult> recordsLeft = [select count(ID) toProcess from Assessment__c where Processed_for_SPSS__c = false and Assessment_Date__c > 2006-01-01 ];
I get a time limit exceeded error nine times out of ten when I try to display the page.
Assessment_Date__c is indexed.
I have about 20,000 records
Is there anything I can do to speed this up?
Try with below code !!
Thanks
Manoj
the object in question has 497 fields - could this be causing the problem?
I have raised a case, but I am not hopeful as the initial response was "this is a coding issue, go to the developers forum"
I wait and see...