Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-17623

IssuePicker ajax queries can use excessive memory

    XMLWordPrintable

Details

    Description

      When searching for issues in the issue picker, if someone enters a prefix that matches a lot (many thousands) of issue keys, this gets expanded by lucene into a query with thousands of terms. As this search is unsorted, it then tries to score it, creating a scorer per term. These scorers take up a lot memory (we saw 80MB for 40K issues) and are completely unnecessary as we will only ever match one issue key in the issue key field.

      We need to implement a ConstantScorePrefixQuery, similar in design to Lucene's ConstantScoreRangeQuery.

      Attachments

        Issue Links

          Activity

            People

              jed Jed Wesley-Smith (Inactive)
              jed Jed Wesley-Smith (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h