Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[GEOT-4239] Avoid hard-coding batch size for oracle JDBC datastores, …

…patch by David Winslow
  • Loading branch information...
commit 03d09480481bcc6a31d99cc9fa40ebe15499932d 1 parent 637c900
@aaime aaime authored
View
6 modules/plugin/jdbc/jdbc-oracle/src/main/java/org/geotools/data/oracle/OracleNGDataStoreFactory.java
@@ -124,8 +124,10 @@ protected JDBCDataStore createDataStoreInternal(JDBCDataStore dataStore, Map par
String metadataTable = (String) GEOMETRY_METADATA_TABLE.lookUp(params);
dialect.setGeometryMetadataTable(metadataTable);
- // setup proper fetch size
- dataStore.setFetchSize(200);
+ if (dataStore.getFetchSize() <= 0) {
+ // Oracle is dead slow with the fetch size at 0, let's have a sane default
+ dataStore.setFetchSize(200);
+ }
return dataStore;
}
Please sign in to comment.
Something went wrong with that request. Please try again.