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
Srinivas SSrinivas S 

Displaying more than 500 records in lightning table visualforce

Hi,

1. We have created a lightning component and lightning application.
2. Referred lightning app in visualforce page to display the table of records.

When we are displaying the bulk records (more than 500), it is taking more time (>30 Sec)  due to huge logic in the javaScript helper.

Instead of displaying all the 500 records at a time which is consuming more time, I want to load 5 records first later it can process for the remaining records.

If anyone of you having suggestions please let me know.

Thanks,
Srinivas
 
Mustafa JhabuawalaMustafa Jhabuawala
In short you need pagination type functionality.

You can achieve this by using jQuery datatables plugin which will handle the pagination and will fetch and display only the limited number of records.
Srinivas SSrinivas S
We are having pagination, requirement is we need to display 500 records per page.

Thanks,
Srinivas
Mustafa JhabuawalaMustafa Jhabuawala
Can you share your code. So that I can look into it once.
Amit VaidyaAmit Vaidya
Srinivasa,

Do you want to show 5 records per page till 500 records so that there would be 100 pages? Or do you want to display 500 records per page?
Aabhi BattaAabhi Batta
Srinivasa,

You can retrieve the first 5 records and set time interval for the remaining records . In this way you can retrieve the data at the earliest time .