Method to cancel search?
See original GitHub issueHello, I’ve just started using fuse.
I search a very large array of objects (~15000), each with one property (let’s call it name
).
Every search returns thousands of results.
I can’t tell if fuse has performance issues, probably not, it’s just a very large array. Anyway, I put it in a web worker, and now the UI is perfectly responsive but the results returned from the web worker still lag behind because it’s still executing old searches.
I’d like to be able to cancel all pending searches before I start a new one.
I imagine this wouldn’t be very difficult to implement?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Manage & delete your Search history - Android
Delete Search history · On your Android phone or tablet, open the Google app . · At the top right, tap your Profile...
Read more >In vim, is there a way to cancel a search *without* resetting ...
When I start a search, it immediately goes to the first match. If I press return to accept the search, the result is...
Read more >Canceling a search
Procedure ; From the Search menu, select Manage Search Results. ; Click Cancel. ; Click Yes.
Read more >How to Delete All Google Search History - 2021 - YouTube
How to delete all Google search history? In this tutorial, I show you how to delete and clear all search history from Google....
Read more >ICallHierarchyMemberItem.CancelSearch(String) Method
The category in which to cancel the search. Applies to. Product, Versions. Visual Studio SDK, 2015, 2017 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not a Fuse issue 😄 Sounds like you should throttle/debounce the searching that is executed on the Web Worker.
The idea of a
cancel
operation would only make sense if Fuse contained some asynchronous behavior, which it doesn’t have.You can also wait with searches if the last one was long and a short time ago and check later if it is still needed. I am using this implementation: