Hi everyone,
Do I need to create the HikariDataSource and close it for each SQL query? If I did, I always get the following results on console:
INFO [2015-03-23 07:26:31,202] com.zaxxer.hikari.HikariDataSource: HikariCP pool HikariPool-0 is starting.
...
INFO [2015-03-23 07:26:31,524] com.zaxxer.hikari.pool.HikariPool: HikariCP pool HikariPool-0 is shutting down.
INFO [2015-03-23 07:26:31,528] com.zaxxer.hikari.util.ConcurrentBag: ConcurrentBag has been closed, ignoring add()
And the HikariPool-# will be increased with further queries.
The console will only show the pool message once without the extra shutting down messages.
May I ask which way is the correct way to use the Hikari connection pool?
Many thanks,
Jeremy