Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-72196

Reduce performance cost of conditional updates

    XMLWordPrintable

    Details

    • Feedback Policy:
      We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      Problem Definition

      After upgrading to JIRA 8.10.0 and later, including the LTS release 8.13.0, the background reindex operations may be slower (0-20%) than it was in previous Jira versions. The extra cost is caused by higher index consistency ("conditional update" is one of the steps to ensure consistency). The performance overhead is connected with creating multiple Lucene index readers in same request.

      See also Background reindex is slow after upgrading to Jira 8.10 and later

      Suggested Solution

      • Create index searcher once and never invalidate it. This is under assumption that index searcher needs to only be accurate about issues that are not in the cache
      • Increase the cache size x100 (capacity 100,000). The searcher never gets invalidated, unless the cache is also invalidated.
        • This means we pay the cost of invalidating the searcher much less frequently.

      Workaround

      None

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mswinarski Maciej Swinarski
              Reporter:
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: