Hi I have been using DB2 10.5 LUW deployed on HP-UX machine, the driver is db2jcc I think the version is 4.19.66 in combination with Spring Data. I have two configurations of my Datasource in both places I try to increase the queryDataSize jdbc attribute because I need to stream large tables. My data source configuration looks the following way:
Configuration 1:
DB2SimpleDataSource source = new DB2SimpleDataSource();
source.setQueryDataSize(98303);
source.setFetchSize(100000);
source.setDriverType(4);
source.setServerName("somename");
source.setPortNumber(56010);
source.setDatabaseName("DATABASE");
source.setReadOnly(true);
Configuration 2 via Hikari
HikariConfig config = new HikariConfig();
config.setJdbcUrl( "myDB2JdbcUrl;queryDataSize=98303;" );
config.setUsername( "user" );
config.setPassword( "password" );
config.addDataSourceProperty( "cachePrepStmts" , "true" );
config.addDataSourceProperty( "prepStmtCacheSize" , "250" );
config.addDataSourceProperty( "prepStmtCacheSqlLimit" , "2048" );
config.addDataSourceProperty( "maximumPoolSize" , 50 );
config.addDataSourceProperty( "readOnly" , true );
config.addDataSourceProperty( "transactionIsolation" , Connection.TRANSACTION_READ_UNCOMMITTED);
config.addDataSourceProperty( "useServerPrepStmts " , true);
In both configurations when I profile the application via network monitoring tool. The buffer size is the default 32767 when it should have been 65535.
What am I doing wrong ? How can I activate the queryDataSize ?
UPDATE: IT apears setting the value lower tha 32k is accepted , but any valid value above is reset to 32K I have been placing so far only valid values.