table icon indicating copy to clipboard operation
table copied to clipboard

Performance very slow when managing 50,000 rows aprox (v6)

Open liben96 opened this issue 5 years ago • 7 comments

Refreshing 50K rows slows down the performance of the table. We are showing 20-30 elements per page, and we have a total of 2000 pages. When we try to jump to page X, the table takes around 10-15 seconds to refresh. When we try to search or filter the table, we experience the same issue.

Any ideas how to fix this? Is someone managing thousands of rows with no delay?

This is using react table v6.11

We cant provide an example/screenshot due to data protection

  • OS: iOS and Windows
  • Browser: Chrome and Safari

liben96 avatar Dec 21 '20 09:12 liben96

AFAIK v6.11 is no longer supported.

A possible solution for your problem is to move pagination and filtering to server. The server will then return only subset of those 50K rows.

mrceperka avatar Dec 23 '20 10:12 mrceperka

@mrceperka are you aware of any examples of filtering being moved to the server?

ledbetterljoshua avatar Jun 11 '21 18:06 ledbetterljoshua

@ledbetterljoshua No, I am not. I had to figure it out on my own. I've ended up not using onFetchData because it caused me infinite loops.

6.x is deprecated anyway so it would be best for you to start with 7.x if you can.

mrceperka avatar Jun 11 '21 20:06 mrceperka

@mrceperka Yep, I am. After a little more digging, I think the solution is to set manualFilters to true and send the filters to the server, returning the filtered data. I don't have anything working yet, but I think I'm on the right track.

ledbetterljoshua avatar Jun 11 '21 20:06 ledbetterljoshua

This issue is being marked as stale (no activity in the last 14 days)

github-actions[bot] avatar Apr 08 '22 17:04 github-actions[bot]

This issue has been detected as stale and automatically closed. It's very likely that your issue has remained here this long because it would require breaking changes to v7. React Table v8 is currently in alpha (soon beta!) and already contains bug fixes, performance improvements and architectural changes that likely address this issue.

  • If your v7 issue has been previously labeled as requiring breaking changes, please try the new v8 alpha/beta releases
  • If your v7 issue has not already been labeled as a breaking change, open a new issue.
  • If this was a v8 issue and was closed by mistake, please reopen or leave a comment below.

github-actions[bot] avatar Apr 08 '22 17:04 github-actions[bot]

I'm facing the same issue i have an idea is it possible to fetch the 10 or 20 or 30 records based on the pagination clicked than it must retrieve the data from the database not all record at on call . I'm using the datatable library

siddharth-283 avatar Jun 25 '24 05:06 siddharth-283