fnCallBack is very slow
fnCallBack is very slow
I am trying to display around 10000 records using the datatable. The ajax is returning the results on 850ms, but he fnCallBack function is taking 4500ms to render the datatable. I am using the 'bDeferRender' to display only the first 25 records. when I add logs on mData and found that, it is looping through 'set', 'sort', 'filter', 'undefined' 10000 times and 'display' 25 times.
I do have few conditions in the 'mData' to modify the display. If I remove the conditions the table display is very fast. Is there any way to improve the speed of display? Looks like the conditions are executed 4 x number of records times. Is there any way I can skip the 'sort','filter' requests in 'mData.?
Answers
I am adding an image and a hyperlink to the cell value based on a condition. Looks like that is causing the problem. Any way to resolve?
Resolved. User 'fnCreatedCell' instead of 'mRender' which solved the problem