SOLR-5954: Slower DataImportHandler process caused by not reusing jdbc connections.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1587706 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-04-15 19:38:35 +00:00
parent c7c9fc35a1
commit d393b2916c
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ Bug Fixes
was an exception while trying to register as the leader. was an exception while trying to register as the leader.
(Mark Miller, Alan Woodward) (Mark Miller, Alan Woodward)
* SOLR-5954: Slower DataImportHandler process caused by not reusing jdbc
connections. (Mark Miller, Paco Garcia, Raja Nagendra Kumar)
Other Changes Other Changes
--------------------- ---------------------

View File

@ -442,7 +442,7 @@ public class JdbcDataSource extends
} }
} }
private static final long CONN_TIME_OUT = 10 * 1000; // 10 seconds private static final long CONN_TIME_OUT = TimeUnit.NANOSECONDS.convert(10, TimeUnit.SECONDS);
private static final int FETCH_SIZE = 500; private static final int FETCH_SIZE = 500;