Last active
January 17, 2024 17:00
-
-
Save juarezjuniorgithub/93ec237803e6caa0613cee2db64ea149 to your computer and use it in GitHub Desktop.
HikariCP properties that don’t have identical UCP properties to match but do have other mechanisms like driver properties or UCP APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HikariCP | Comments | |
|---|---|---|
| autoCommit | Use Oracle JDBC driver connection property autoCommit. | |
| registerMbeans | UCP always attempts registration. | |
| threadFactory | UCP supports setTaskManager instead (setter API only). | |
| scheduledExecutor | UCP supports setTaskManager instead (setter API only). | |
| keepaliveTime | Closest is to use driver connection properties oracle.net.keepAlive + oracle.net.TCP_KEEPIDLE which apply to all connections borrowed/available. The HikariCP property applies only to idle/available connections and uses isValid/query to keep alive. Another option is to add async validation in UCP for available connections. | |
| minimumIdle | Controls the minimum number of idle connections HikariCP tries to maintain in the pool. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment