Performance considerations
- Last Updated: July 2, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
FetchSize: FetchSize can be used to adjust the trade-off between throughput and response time. In general, setting larger values for FetchSize will improve throughput, but can reduce response time. You should set FetchSize to suit your environment. Smaller fetch sizes can improve the initial response time of the query. Larger fetch sizes improve overall fetch times at the cost of additional memory.
InsensitiveResultSetBufferSize: To improve performance, result set data can be cached instead of written to disk. If the size of the result set data is greater than the size allocated for the cache, the driver writes the result set to disk. The maximum cache size setting is 2 GB.
MaxPooledStatements: To improve performance, the driver's
own internal prepared statement pooling should be enabled when the
driver does not run from within an application server or from within
another application that does not provide its own prepared statement
pooling. When the driver's internal prepared statement pooling is
enabled, the driver caches a certain number of prepared statements
created by an application. For example, if the MaxPooledStatements
property is set to 20, the driver caches the last 20
prepared statements created by the application. If the value set
for this property is greater than the number of prepared statements
used by the application, all prepared statements are cached.