Datatable Slow Rendering #114
-
Datatable renders really slow and typing in the search term is being really laggy, when the row count is more than 200. This is how my code looks like:
which gets triggered by:
and initiated like this:
datatable:
What to do make the search going faster, thanks for help :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Performance enhancements have been made for 10.0.0 which is hopefully coming out tomorrow: primefaces/primereact#4768 So after 10.0.0 comes out can you report back if its better? Also make sure you are not in Strict Mode as duplicate re-renders in StrictMode make everything slower. However if you are displaying 200 rows on screen they are all being rendered whereas 20 rows is a lot less to re-render. |
Beta Was this translation helpful? Give feedback.
-
For large datasets, we suggest lazy loading but 200 should be fine for local data, could you please provide a reproducer via our template; https://codesandbox.io/s/primereact-test-forked-bbns8k That would really help to pinpoint the case. |
Beta Was this translation helpful? Give feedback.
Ok please comment on this ticket and add your reproducer and scenario. primefaces/primereact#2979
It's related to re renders