]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4460 Remove fetchSize on measure filters
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 5 Jul 2013 14:30:38 +0000 (16:30 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 5 Jul 2013 14:30:38 +0000 (16:30 +0200)
sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java

index 6b8b877b2851b78dbbf78f8e425158f1b93bc4ce..a2f0d54703bd93fab75f7048e1c8f6b5d7b84d39 100644 (file)
@@ -30,18 +30,12 @@ import org.sonar.core.resource.SnapshotDto;
 
 import javax.annotation.Nullable;
 
-import java.sql.Connection;
-import java.sql.Date;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Timestamp;
+import java.sql.*;
 import java.util.Comparator;
 import java.util.List;
 
 class MeasureFilterSql {
 
-  private static final int FETCH_SIZE = 1000;
   private final Database database;
   private final MeasureFilter filter;
   private final MeasureFilterContext context;
@@ -57,7 +51,6 @@ class MeasureFilterSql {
 
   List<MeasureFilterRow> execute(Connection connection) throws SQLException {
     PreparedStatement statement = connection.prepareStatement(sql);
-    statement.setFetchSize(FETCH_SIZE);
     ResultSet rs = null;
     try {
       for (int index = 0; index < dateParameters.size(); index++) {