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;
<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">