Repeated invalidation causes long data processing

Repeated invalidation causes long data processing

arekfarekf Posts: 3Questions: 2Answers: 0

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

  • allanallan Posts: 63,133Questions: 1Answers: 10,399 Site admin

    Hi Arek,

    That looks very buggy to me. I'll take a look and post back. Thanks for the test case!

    Allan

  • allanallan Posts: 63,133Questions: 1Answers: 10,399 Site admin
    Answer ✓

    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

  • arekfarekf Posts: 3Questions: 2Answers: 0

    Awesome, thank you!

    Arek

  • hpcschpcsc Posts: 1Questions: 0Answers: 0

    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

  • allanallan Posts: 63,133Questions: 1Answers: 10,399 Site admin

    No it is not in the release version. I will be in 1.10.1 when it is released (soon).

    Allan

This discussion has been closed.