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
HChauhanHChauhan 

Governer limit

Need some help on governer limits

Total number of records retrieved by SOQL queries - 50000

 

It is mentioned that total no of records retrieved by SOQL queries in an apex context should be 50000.

I have a large Visualforce page with lots of data displayed in several grids and charts.

It was running fine but now Getting error - reached 50001 rows.

 

Trying to fix this error. Just getting confused about apex context.

does all the queries executed on visual force controllers comes in a single apex context ? If not how the apex engine decide an apex context ?

Best Answer chosen by Admin (Salesforce Developers) 
hitesh90hitesh90

 

Refer following Link. i hope it helps to you.

Too Many Query Rows 50001

 

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
My Blog:- http://mrjavascript.blogspot.in/

All Answers

VaasuVaasu
If you are accessing any page and that page has lot of queries on the load (I mean while loading like in constructor) in it those all will counted as single apex context.
hitesh90hitesh90

 

Refer following Link. i hope it helps to you.

Too Many Query Rows 50001

 

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
My Blog:- http://mrjavascript.blogspot.in/

This was selected as the best answer
HChauhanHChauhan
Thanks Bro.
Its like Hitesh helped Hitesh
hitesh90hitesh90

welcome dude!!!  :)