+ Start a Discussion

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?







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)


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).