Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20465

Bulk deletion of projects even with zero issues is very slow and decreases performance

      Issue Summary

      At times bulk deletion of projects are carried out to clean up the instance and reduce the load on the index. During deletion of the projects, the instance becomes unusable and causes significant performance degrade. Customer analysis shows that this originates from the large number of queries being run in the database individually rather than in batches and very frequently. The time taken for individual query, even though smaller adds up significantly in total, when the database is located remotely.

      Our Analysis shows that this is because to in the delete command, the code around workflows & workflow schemes doesn’t batch the database calls so well. Moreover, we’re often accessing these workflows through caches—yet we clear the caches partway through the process (before dealing with draft workflows) owing to the fix for JRASERVER-8032

      Steps to Reproduce

      1. Create 200 - 300 test projects with one or more test issues using data generator plugin.
      2. Try deletion of the projects in bulk using a plugin such as REST API or BobSwift CLI, the instance experiences large number of calls to the database contending with other normal user operations.

      Expected Results

      The project deletion should not cause significant performance degrade.

      Actual Results

      Project deletion causes the instance to become unusable and causes performance degradation.

      Workaround

      Currently there is no known workaround for this behavior except to perform the deletion during any available maintenance period if possible.

            [JSWSERVER-20465] Bulk deletion of projects even with zero issues is very slow and decreases performance

              Unassigned Unassigned
              svenkatachari shrivatsaa
              Affected customers:
              28 This affects my team
              Watchers:
              36 Start watching this issue

                Created:
                Updated: