You need to sign in to do that
Don't have an account?
![shalini sharma 24 shalini sharma 24](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
how to query more than 50000 records in apex and bind it in vf page? As there is a governor limit of 50000 records retreived by SOQL query, so how to achieve this?
Hi,
I want to display all the records returned by SOQL query in a VF Page through PageBlockTable and Pagination. But the tweak is that retrieved records are more than 50k and there is limit of 50K records . This has to be done in a synchronous way.
I want to display all the records returned by SOQL query in a VF Page through PageBlockTable and Pagination. But the tweak is that retrieved records are more than 50k and there is limit of 50K records . This has to be done in a synchronous way.
Create a global list in batch class and add all records returned by your batches
Get the list in your vf controller like this,