]> source.dussan.org Git - sonarqube.git/commit
Fix performance issue in CE when many files have being deleted/moved
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 21 Jul 2016 14:49:23 +0000 (16:49 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 22 Jul 2016 07:25:13 +0000 (09:25 +0200)
commitd6f3a7089e255bca1a286b980ff49b9a7d72c96b
tree006bfcb62642e1bbcac0bab9c972dff82abf12ef
parent5e769422d2704ba6a22321d3bccef2d23da9d7f9
Fix performance issue in CE when many files have being deleted/moved

When updating columns PROJECTS.B_ENABLED to false, as many SQL UPDATE requests as
components to be disabled are executed, whereas only a single request with "UUID IN ?"
could be executed.
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistComponentsStep.java
sonar-db/src/main/java/org/sonar/db/DatabaseUtils.java
sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
sonar-db/src/main/java/org/sonar/db/component/ComponentMapper.java
sonar-db/src/main/resources/org/sonar/db/component/ComponentMapper.xml
sonar-db/src/test/java/org/sonar/db/DatabaseUtilsTest.java
sonar-db/src/test/java/org/sonar/db/component/ComponentDaoTest.java