Optimize Project Directory performance and permission evaluation for instances with a high volume of projects

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • Component/s: Space - List
    • None
    • 1

      The Jira Project Directory (/jira/projects) and the associated GraphQL operation ProjectDirectoryRefetchQuery experience significant latency and intermittent 504 Gateway Timeouts on instances with a large number of projects (typically 5,000 or more).

      Technical Details:
      Internal investigation reveals that the JiraProjects operation performs a synchronous fan-out of permission checks for every project in the instance to determine visibility and navigation items. On instances with ~7,000 projects, this results in:

      • Permission Fan-out: Over 6,000+ individual calls to authorization services per request.
      • Latency: Even when pagination is set to 25 projects, the backend may spend 30–60 seconds evaluating the full project list to satisfy the query, leading to timeouts at the proxy layer (60s).
      • Cold Cache Impact: Performance is significantly worse when the permission cache is cold, often occurring during low-traffic periods.

      Suggested Fix:

      • Implement bulk permission evaluation for the Project Directory to avoid N+1 fan-outs.
      • Optimize the defaultNavigationItem data fetcher to avoid iterating through the entire project list for paginated results.
      • Improve cache warming strategies for high-scale tenants.

      Workaround:
      Users may need to refresh the page to "warm" the cache or use direct links to specific projects/boards to bypass the global project directory.

              Assignee:
              Daisy Xu
              Reporter:
              Pawel Przeworowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: