]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9216 Memory hotspot when indexing components at server startup
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 11 Jul 2017 08:08:37 +0000 (10:08 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 11 Jul 2017 13:07:33 +0000 (15:07 +0200)
server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml

index 2138cca83cd9be13831049b70851e4008c7ed430..eb361e3a45d5400b43be006227d205a0c546fce0 100644 (file)
     </if>
   </sql>
 
-  <select id="selectForIndexing" parameterType="map" resultType="Component">
+  <select id="selectForIndexing" parameterType="map" resultType="Component" fetchSize="${_scrollFetchSize}" resultSetType="FORWARD_ONLY">
     select
       <include refid="componentColumns"/>
     from projects p