Salesforce Certificate

Tuesday, 2 April 2013

Too Many Query Rows 50001 & collection exceeds maximum size: 1001


Page: 

<apex:page controller="ctrlCustomcontroller" readOnly="true">
</apex:page>

If your controller does not have any DML operation than you can easily solve above two salesforce governer limits using the attribute readOnly="true" by default it's value is false.

1. Query Rows limits increased from 50001 to 1 million rows
2. collection size limits increased from 1001 to 10,000

2 comments:

  1. It works. Thanks a ton. Its really helpful for me.

    ReplyDelete
  2. it works for me also but i have dml how to over come this

    ReplyDelete