Repeated invalidation causes long data processing
Repeated invalidation causes long data processing
Hello,
I need to invalidate my table data cache often. When I trigger invalidate
for table cells, the time to process data is growing really fast with every next invalidate
method call (even when table data has not been change).
Here's an example: http://live.datatables.net/rudekak/1/
Please click "invalidate" link in left top corner a few times. Processing time is being logged to the console.
I've reproduced this issue on Safari and Google Chrome.
Is this a bug? How can I workaround this?
Thank you,
Arek
This question has an accepted answers - jump to answer
Answers
Hi Arek,
That looks very buggy to me. I'll take a look and post back. Thanks for the test case!
Allan
Fix committed here: https://github.com/DataTables/DataTablesSrc/commit/449c2e4ac7
And it is now in the nightly :-). Updated example: http://live.datatables.net/rudekak/2/edit
Thanks for flagging this up!
Allan
Awesome, thank you!
Arek
Hi, sorry for bump this up. May I know whether the fix is in the release version of DataTables? I use v 1.10 and it seems still got problem, after invalidate(), the cache data is duplicated
No it is not in the release version. I will be in 1.10.1 when it is released (soon).
Allan