It’s Faster.
There is nothing faster. There is nothing more correct. HikariCP is a “zero-overhead” production-quality connection pool.
Using a stub-JDBC implementation to isolate and measure the overhead of HikariCP, comparative benchmarks were performed on a commodity PC.
Just drop it in and let your code run like its pants are on fire.
Java 8 maven artifact:
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.7.8</version>
<scope>compile</scope>
</dependency>
Java 7 and Java 8 maven artifact:
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java7</artifactId>
<version>2.4.13</version>
<scope>compile</scope>
</dependency>
Java 6 maven artifact:
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java6</artifactId>
<version>2.3.13</version>
<scope>compile</scope>
</dependency>
Initialization and Configuration
See the main project page for initialization examples.
You can find information about the configuration properties here.
Support
Google discussion group HikariCP here.
Requirements
- Java 6 and above
- slf4j library
