Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9028 Web service api/projects/delete is too slow
  3. SONAR-9346

Delete links only for project when deleting a project

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5-M1
    • Component/s: Database
    • Labels:

      Description

      When deleting a project, currently, deletion of links performed for every components in the project (same for views). As a consequence, multiple SQL requests are sent to delete data from this tables (one for every 1000 components in the project).

      The fact is that link can only be defined at project/view level. The number of SQL request could be therefor be reduced to just one, a very much simpler one.

      To avoid having data left over in the database with this new method which would have been deleted by the old one, a database migration should be added to delete any link defined for components which are neither projects nor views.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: