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

JIRA startup causes very inefficient rebuilds of its statistics data structures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.0
    • None
    • None
    • None

      When JIRA starts up it appears to query all the issues. Unfortunately this involves n+1 queries. This is problematic when we have many thousands of issues in the db. A restart takes over 15 minutes. Instead an optimized select should be used to query the entire rowset and parse each row. This would reduce much of the wasted overhead caused by the useless transaction demarcation that wraps each select.

      ReIndexing would also benefit from this optimization. I can manually perform all the select statements that retrieves all the data from the db in under 1 minute yet a reindex takes half an hour because of its inefficiencies.

              Unassigned Unassigned
              colinbendell Colin Bendell
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: