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
Ashritha ReddyAshritha Reddy 

what is pagination best practices?

what is pagination best practices?
Chris  ByromChris Byrom
In most cases you can use the StanadardSetController to handle pagination. It depends on the amount of data you are using. If it is less than 10,000 records at a time this works well. You create a SOQL query and store the results in the StandardSetControler on the server. Then you can use it's methods to paginate.

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

 
Ashritha ReddyAshritha Reddy
but what are the best practices ?
Rajan TRajan T
am searching for the same answer Ashritha. Let me know if you find some best practices for the pagination.