Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.17.0
-
None
Description
Hikari is much faster and more reliable than DBCP2.
See comparison and benchmarks:
https://beansroasted.wordpress.com/2017/07/29/connection-pool-analysis/
https://github.com/brettwooldridge/HikariCP
sourceParameters section will allow setting data source parameters listed in https://github.com/brettwooldridge/HikariCP
Example:
"sourceParameters" : { "minimumIdle" : 5, "autoCommit": false, "connectionTestQuery": "select * from information_schema.collations", "dataSource.cachePrepStmts": true, "prepStmtCacheSize": 250 }
Example of full configuration:
{ "type": "jdbc", "driver": "org.postgresql.Driver", "url": "jdbc:postgresql://localhost:5959/my_db?defaultRowFetchSize=2", "username": "my_user", "password": "my_pass", "caseInsensitiveTableNames": false, "sourceParameters": { "autoCommit": false }, "enabled": true }
Attachments
Issue Links
- links to