jquery-datatables-checkboxes icon indicating copy to clipboard operation
jquery-datatables-checkboxes copied to clipboard

Performance problem on search when deferRender is enabled

Open rodriformiga opened this issue 7 years ago • 2 comments

Hello. I have a performance problem on I set the deferRender and and typing in the search field, I have a performance problem with many records, and the select trigger is fired every time the search field changes. Example on https://jsfiddle.net/8ccdbcyt/

  1. select all records with names beginning with "B"
  2. typ in search field B, R, E, A
  3. see the console log

PS: if I comment the deferRender parameter, the program works ok. PS2: performance problem occour with many records (in my case (not in the example above), 400 records) PS3) without the checkboxes extension, the select trigger isn´t fired

rodriformiga avatar Oct 11 '17 17:10 rodriformiga

Thanks for reporting this issue.

You are correct, this is how plug-in works now. When deferRender is set to true, it will trigger select event on every redraw for each selected checkbox.

However I see your point and will work to find a possible resolution.

mpryvkin avatar Oct 16 '17 16:10 mpryvkin

Plug-in fires select event only for current page only, this should not be a big effect on performance.

This is needed because in deferred rendering mode row nodes are created on the fly by jQuery DataTables on page change. Checkboxes plug-in need to make sure that checkboxes/rows are rendered properly after the redraw.

mpryvkin avatar Oct 16 '17 17:10 mpryvkin