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
Satya sai sudhirSatya sai sudhir 

How do we add 10,000 contact records using batch apex in Visual Force display those accounts using “Pagenation”.?

I haven't used this feature before. Kindly help.
R Z KhanR Z Khan
You can use read only attribute to push limit to 50K records. You cannot use batch in visualforce controller as batch is async job

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_readonly_context_pagelevel.htm