]> source.dussan.org Git - sonarqube.git/commitdiff
Experimental fix for purges on Oracle
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 2 Feb 2012 10:38:41 +0000 (11:38 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 2 Feb 2012 10:38:41 +0000 (11:38 +0100)
sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java
sonar-core/src/main/resources/org/sonar/core/purge/PurgeMapper.xml

index 4413fff3aee21e1c46d439b04895aa17160cf06e..da48c5f6c76f13303d95e1ff31b236b9ecca8406 100644 (file)
@@ -31,7 +31,7 @@ import java.util.Map;
 
 public final class BatchSession implements SqlSession {
 
-  public static final int MAX_BATCH_SIZE = 1000;
+  public static final int MAX_BATCH_SIZE = 250;
 
   private final SqlSession session;
   private final int batchSize;
index ac1b2288f93f92efb0422e2043b36a52ee6c1dc0..b1144d9a6dad86c2997b27304e01885ffaa6aa4b 100644 (file)
@@ -3,7 +3,7 @@
 
 <mapper namespace="org.sonar.core.purge.PurgeMapper">
 
-  <select id="selectSnapshotIds" parameterType="map" resultType="long" resultSetType="SCROLL_INSENSITIVE">
+  <select id="selectSnapshotIds" parameterType="map" resultType="long" >
     select s.id from snapshots s
     <where>
       <if test="islast != null">