Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1429

Cancel queued threads when limit reached

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0, 3.3.0, 4.2.1, 3.2.1
    • None
    • None

    Description

      We currently spawn a thread per guidepost to process a query. For a full scan with a LIMIT of 1, this is particularly inefficient, as once we get our one row back, we no longer need to execute the other queued threads. We should cancel those threads once the limit is reached.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment