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

WS /api/ce/activity is executing one SQL query for each entry

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4
    • Labels:
      None

      Description

      The WS /api/ce/activity is executing the following SQL query for each entry :

      SELECT         p.id,    p.uuid as uuid,    p.project_uuid as projectUuid,    p.module_uuid as moduleUuid,    p.module_uuid_path as moduleUuidPath,    p.kee as kee,    p.deprecated_kee as deprecatedKey,    p.name as name,    p.long_name as longName,    p.description as description,    p.qualifier as qualifier,    p.scope as scope,    p.language as language,    p.root_id as parentProjectId,    p.path as path,    p.enabled as enabled,    p.copy_resource_id as copyResourceId,    p.person_id as developerId,    p.authorization_updated_at as authorizationUpdatedAt,    p.created_at as createdAt       FROM projects p     WHERE  p.uuid=?
      

      This should be improved to only execute one SQL query.

      Technical details :
      ActivityAction is using TaskFormatter that contains a cache of components (ComponentCache). This cache is fed one component at a time, it should be possible to feed with a list of components.

        Attachments

          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: