Partial update of large table
Partial update of large table
magiconair
Posts: 4Questions: 0Answers: 0
Hi,
I'm still new to data tables so bear with me. However, I couldn't find something in the forum or the documentation.
I got a table with 200 entries with 5 columns and need to update two of the columns every 10 seconds. Right now I'm using the JavaScript array and the fnUpdate() method and update the internal structures on the last update. By looking at the CPU load there is a noticeable blip every 10 seconds. My feeling is (need to verify again) that when I rendered the table myself (with data tables) and updated the DOM the update process was not as taxing as the fnUpdate() calls.
Is there a way to do something like this? This would save me a couple of hundred calls to fnUpdate.
[code]
var data = oTable.fnGetData();
... fix data ...
oTable.fnUpdate(data); <-- update internal structures
oTable.fnRefresh(); <-- redraw
[/code]
Cheers
Frank
I'm still new to data tables so bear with me. However, I couldn't find something in the forum or the documentation.
I got a table with 200 entries with 5 columns and need to update two of the columns every 10 seconds. Right now I'm using the JavaScript array and the fnUpdate() method and update the internal structures on the last update. By looking at the CPU load there is a noticeable blip every 10 seconds. My feeling is (need to verify again) that when I rendered the table myself (with data tables) and updated the DOM the update process was not as taxing as the fnUpdate() calls.
Is there a way to do something like this? This would save me a couple of hundred calls to fnUpdate.
[code]
var data = oTable.fnGetData();
... fix data ...
oTable.fnUpdate(data); <-- update internal structures
oTable.fnRefresh(); <-- redraw
[/code]
Cheers
Frank
This discussion has been closed.