Skip to content

Commit

Permalink
Readd hikari properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac committed Mar 18, 2024
1 parent 0b8ea93 commit d3f8d41
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public Exception connect() {
config.setJdbcUrl("jdbc:mariadb://" + host + ':' + port + '/' + database);
config.setUsername(username);
config.setPassword(password);
config.addDataSourceProperty("cachePrepStmts", "true");
config.addDataSourceProperty("prepStmtCacheSize", "250");
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");

hikariDataSource = new HikariDataSource(config);
} catch (Exception exception) {
hikariDataSource = null;
Expand Down

0 comments on commit d3f8d41

Please sign in to comment.