function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vickySFDCvickySFDC 

What is Use of@Readonly annotations?How many records we display while using this annotation?

Hi Vicky,

 

Can anybody explain me about @Readonly annotation and what is use of this annotation?Which scenarion we will this annotations?How many Records we can display in Vf page while using this annotatios?

 

 

Thanks,

 

Vicky

levaleva

If you are not doing any DML (insert/update) you can use @readonly to increase the number of records SOQL query will retrieve by a lot (x10 regular limit)

~Onkar~Onkar

There is no explicit limit on the number of records returned by a @ReadOnly query.

 

But heap size limit will countinue which is (3MB and 200,000 respectively).

 

 

http://wiki.developerforce.com/page/Spring_11_release_webinar_FAQ