aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-02 12:20:59 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-02 12:20:59 +0100
commit14a9dcb21b2e2adaf96540e9afa79d7ee397ed2b (patch)
treec2f8a40cddb977a34b3b1c375876f54c180c268c /sonar-core
parent8b84563a0452b7ec0d83a11a8a1c75b822a110cc (diff)
downloadsonarqube-14a9dcb21b2e2adaf96540e9afa79d7ee397ed2b.tar.gz
sonarqube-14a9dcb21b2e2adaf96540e9afa79d7ee397ed2b.zip
Fix JDBC batch mode in MyBatis
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java b/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java
index da48c5f6c76..0e7a28a63c7 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java
@@ -31,7 +31,7 @@ import java.util.Map;
public final class BatchSession implements SqlSession {
- public static final int MAX_BATCH_SIZE = 250;
+ public static final int MAX_BATCH_SIZE = 1000;
private final SqlSession session;
private final int batchSize;
@@ -170,7 +170,7 @@ public final class BatchSession implements SqlSession {
}
public <T> T getMapper(Class<T> type) {
- return session.getMapper(type);
+ return getConfiguration().getMapper(type, this);
}
public Connection getConnection() {