Uploaded image for project: 'Periscope'
  1. Periscope
  2. MGNLPER-80

Abandon searches if results are not needed anymore

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 1.1
    • None
    • None
    • Foundation 3
    • 5

    Description

      Whenever a search has been triggered, there's no way to stop it with the current API. In a situation where results will never be needed anymore, this is a waste of resources and in particular delays new searches.

      What Find Bar does in such a situation (e.g. after a search has been triggered after user input, but a subsequent one too because the user typed ahead) is to just ignore any obsolete results coming in and wait for the new ones. If a user manages to type at roughly the same frequency as input debouncing (5 chars per second), many sequential searches are triggered, leading to a queue and considerably delaying final results.

      Potential solution:

      Add a method to Periscope to cancel a running search (e.g. by some identifier, or some other handle). Internally, we could just avoid starting queued search threads, and potentially kill current ones (but that may be dangerous too).

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              creichenbach Cedric Reichenbach
              creichenbach Cedric Reichenbach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.5d
                    0.5d