Monday, January 27, 2014

Consider total 90k records present in Salesforce and you have used the count() method of soql. What will be output of it

Consider total 90k records present in Salesforce and you have used the count() method of soql. What will be output of it

It will throw an error something like “Too many query rows: 50001”, as the record limit in SOQL is 50,000.

Although the count() returns only one row however it processes each record and thus hit the allowed governor limit.

No comments:

Post a Comment