Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7130

During the purge mechanism, one SQL query is executed on each module

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: Compute Engine, Database
    • Labels:
      None

      Description

      When the purge is executed on a multi-module, the following SQL query is executed on each module :

      select * from projects where scope='PRJ' and root_id=?
      

      It should be replaced by one SQL query based on the project uuid, instead of using the root_id.

      Technical detail :
      In PurgeDao.getProjects(), resourceDao.getDescendantProjects is executing one query by module.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastien.lesaint Sebastien Lesaint
                Reporter:
                julien.lancelot Julien Lancelot
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: