I tried datatable using dynamic loading with paging and it worked well when the amount of data is small (<2,000). But when the amount increased to about 100,000 (>5,000 pages), it became extemely slow to finish loading one page of data (20 rows). The server response time was very short and the majority of response time was spent on the client side! I guess this was because the datatable component is designed to store and maintain the whole data no matter if I just wanted to view the first page! How can I solve this issue?
The problem is caused by “adjust” property usage. If “adjust” is set, the library calculates the size of all cells in a column.
Obviously, there is a bug: there are no real records in your test demo and therefore, “adjust” should not affect performance. We will fix this problem in the next version.
However, DataTable in your application can contain up to 100,000 records and “adjust” will be applied to all loaded items to calculate column width.
So, please remove adjust: true from columns configuration and use fixed widths for the columns.