]> source.dussan.org Git - sonarqube.git/commit
SONAR-8325 Improve MeasureDao#selectByQuery performance
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 2 Nov 2016 13:38:31 +0000 (14:38 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 3 Nov 2016 14:36:47 +0000 (15:36 +0100)
commit85bd0e6065d97319657535954d8a97c9ca161430
treefe2513f0ab7f838a7f0886b007eb022a781dbb78
parentd965fca5ff557a3d2cab134435ce05b8d8ab5df1
SONAR-8325 Improve MeasureDao#selectByQuery performance

It now accepts either a list of projects or a project with a list of components, but no more a list of components of any projects

It's no more possible to query a list of any components, because when doing that the performance are very bad (it would probably requires to add a column PROJECT_MEASURES.PROJECT_UUID)
server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeDataLoader.java
server/sonar-server/src/main/java/org/sonar/server/measure/ws/SearchAction.java
server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchMyProjectsDataLoader.java
server/sonar-server/src/main/java/org/sonar/server/qualitygate/ws/ProjectStatusAction.java
sonar-db/src/main/java/org/sonar/db/measure/MeasureDao.java
sonar-db/src/main/java/org/sonar/db/measure/MeasureQuery.java
sonar-db/src/main/resources/org/sonar/db/measure/MeasureMapper.xml
sonar-db/src/test/java/org/sonar/db/measure/MeasureDaoTest.java
sonar-db/src/test/java/org/sonar/db/measure/MeasureQueryTest.java [new file with mode: 0644]