-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clearing search bar with a large database is slow #8665
Comments
Commented by: rryan Looks like clearing via the X is equivalent to changing the search query 5 times:
Other than a few minor differences the code paths are identical (e.g. restoring the vertical bar position) so we can probably fix this by making it search for "" just once. Odd that the workaround works, because it's functionally equivalent except for:
Compare the WTrackTableView::onSearchCleared vs. WTrackTableView::onSearch [1] https://github.com/mixxxdj/mixxx/blob/master/src/widget/wtracktableview.cpp#L981 |
Commented by: rryan Oops, everything from "Odd that the workaround works, because it's functionally equivalent except for:" and below was an old draft. |
Commented by: uklotzde Instead of immediately triggering a search that returns all tracks of the (probably huge) library the debouncing timer should be engaged when clearing the search edit. This is an easy fix and would establish a consistent behaviour. |
Commented by: daschuer The PR cann't fix the route cause of this bug. But it is also not the right bug to track the root cause so let's close it. |
Commented by: uklotzde Of course, it doesn't fix the bug. It just establishes a consistent behaviour. With the configurable debouncing timeout in 2.2 it actually becomes useful. Clearing the box without starting the debouncing timer is not an option, because then the contents of the view might stay inconsistent forever. The issue will finally be resolved once we no longer fetch the whole result set eagerly from the database. |
Issue closed with status Fix Released. |
Reported by: Be-ing
Date: 2016-10-20T02:18:32Z
Status: Fix Released
Importance: Medium
Launchpad Issue: lp1635087
From http://www.mixxx.org/forums/viewtopic.php?p=29623#p29623:
"I've learned to NEVER click the X button in the library search. It wants to re-sort the world every time. I give the field focus, hit ctrl-A to select all the text, and start typing."
Confirmed by another user here: http://mixxx.org/forums/viewtopic.php?p=30520#p30520
The text was updated successfully, but these errors were encountered: