question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering performed both in search and draw

See original GitHub issue

Hi!

I’ve being profiling search functionality and it came in view that when doing dt.column(0).search(...).draw() DT runs filtering twice. First time when search is called, then second time with draw. That looks a bit weird. I might not understand if there is any underlying reasons that covers, but it looks like a bug. From my understanding, search to be actually output to UI need to be finished with draw call, thus I have question is there a need to perform actual search twice? In case I chain up multiple search calls and finish that with draw call, then I’ll get multiple passes. Searches are not identical, however. The difference is in 3rd parameter (iForce) passed into _fnFilterComplete.

Is this real issue? Am I missing something?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
josiahkingcommented, Feb 20, 2020

Its 4 years and counting and no reply. Has this issue been resolved?

0reactions
DataTablescommented, Feb 20, 2020

I can’t be sure where the problem actually is, but there is where I would start: https://github.com/DataTables/DataTablesSrc/blob/941a2f037381bcd19e64f08c1bb766fc20497373/js/core/core.draw.js#L461 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filtering charts in Excel | Microsoft 365 Blog
Here are 4 methods for filtering your chart so you don't have to edit ... To do this, select both columns C and...
Read more >
Video: Sort, filter, summarize, and calculate your PivotTable data
Training: You can analyze PivotTable data in many ways, including sorting to quickly see trends. We'll also look at how to filter, summarize...
Read more >
search() - DataTables
The global search is performed across all searchable columns (see ... As DataTables provides on-the-fly filtering with immediate feedback to the user, ...
Read more >
Working with Google Data Studio Filter: A Detailed Guide
Filtering is used to do two things. You can see what you want (what matches the conditions you have entered). You can avoid...
Read more >
Filtering Responses - Qualtrics
Finished: The status of the respondent's survey (true = completed, ... Qtip: If you are looking for an embedded data field, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found