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

Remove slow execution path on RunSearchRequest

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      On RunSearchRequest#buildSearchRequestFromCustomField, there is a call to ComponentAccessor.getComponent(SearchRequestFactory.class).createFromParameters(null, getUser(), new ActionParamsImpl(params));.

      That createFromParameters method is deprecated on SearchRequestFactory because it's very slow since it ends up calculating the context for the given query.

      As we already know, calculating such context is an expensive operation that has a poor performance on large JIRA instances.

      We should remove this execution path by crafting the jql query for the custom field case and calling SearchRequestFactory#createFromQuery

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsanchez@atlassian.com Jose Jaime Sanchez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: