Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-39275

Remove slow execution path on DefaultSearchRequestURLHandler

    XMLWordPrintable

Details

    Description

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

      On DefaultSearchRequestURLHandler#handleRequest, there is an execution path that ends up calling getSearchRequestFactory().createFromParameters(null, loggedInUser, new ActionParamsImpl(parameters));.

      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.

      Luckily, that execution path can be removed from DefaultSearchRequestURLHandler, since it is only reached when the jql string parameter is null. After investigation, we have come to the conclusion that the only way of getting a null jql parameter is if the user plays with that url and removes it.

      We should remove this execution path by handling the null case as if it was an empty jql string.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: