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

Index projects.kee is not used on measure filter when searching by project key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database, Measures
    • Labels:

      Description

      When execute a search from the measure filters with a key criteria, the projects.kee index is not used as the query contain the UPPER function.

      Here is the SQL generated when searching projects containing the 'sample' key :

      SELECT s.id, s.project_id, s.root_project_id, p.long_name 
      FROM snapshots s INNER JOIN projects p ON s.project_id=p.id  
      WHERE  s.status='P' AND s.islast=true AND p.copy_resource_id IS NULL AND s.qualifier IN ('TRK') AND UPPER(p.kee) LIKE '%SAMPLE%'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: