DataTables with ColumnControl (searchList) increases load time from 2.5s to 15s with ~4000 Ajax-load

DataTables with ColumnControl (searchList) increases load time from 2.5s to 15s with ~4000 Ajax-load

paulobocpauloboc Posts: 4Questions: 0Answers: 0

Hello,
When loading a table with about 4000 rows and 10 columns via Ajax, I noticed a significant increase in loading time when using ColumnControl (searchList).

  • Without ColumnControl (searchList): ~2.5 seconds
  • With ColumnControl (searchList): ~15 seconds

It seems that the reason is that all the select lists (searchList) are loaded and processed during the initial render.

Suggestion:
Would it be possible to load the lists only when the respective select is triggered (lazy load)?
This could significantly reduce the initial load time, especially for large tables.

Steps to reproduce:
Create a DataTable with Ajax loading ~4000 rows and ~10 columns (uniques values).
Compare loading times without and with ColumnControl (searchList).
Notice the significant time difference.

Expected behavior:
The initial load time should not be so heavily impacted by using searchList, ideally loading the options only on demand.

Replies

Sign In or Register to comment.