Open athondapu opened 4 years ago
I would go with pagination, unless you're willing to trace down the issue and submit a fix.
I have tables with 20-30k rows that only take ~2-3 seconds to render, and that's on a thin client box.
Are you using the customBodyRender method for any of your columns? If so, try rendering the table without that method for any of your columns and see how quickly the table renders. If it renders quickly, your problem is with one of your customBodyRender methods being slow.
Internally, the table calls a customBodyRender method twice for each row before rendering the data. So if 5 of your columns use this method, and you have 50k records, there are 500k function calls being made. This is done for processing reasons and for filtering reasons (the table uses the rendered value for filtering). Because of this, optimizing that method is crutial if you want your table to render quickly.
I have tables with 20-30k rows that only take ~2-3 seconds to render, and that's on a thin client box.
Are you using the customBodyRender method for any of your columns? If so, try rendering the table without that method for any of your columns and see how quickly the table renders. If it renders quickly, your problem is with one of your customBodyRender methods being slow.
Internally, the table calls a customBodyRender method twice for each row before rendering the data. So if 5 of your columns use this method, and you have 50k records, there are 500k function calls being made. This is done for processing reasons and for filtering reasons (the table uses the rendered value for filtering). Because of this, optimizing that method is crutial if you want your table to render quickly.
Thanks for the information! Thats is good to know will try this out and check the difference!
Table loading is taking ~10-15 seconds to load 50K records. Also approximately same time is taking if we do a rowClick. Here is the my Data table configuration.
Expected Behavior
Is there any way to reduce the time other than implementing pagenation from my end.?
Current Behavior
Steps to Reproduce (for bugs)
Your Environment