Browse Source

Pool size auto-configure

master
MagicBot 2 years ago
parent
commit
75dfc638e1
  1. 2
      src/engine/gameManager/DbManager.java

2
src/engine/gameManager/DbManager.java

@ -298,7 +298,7 @@ public enum DbManager {
HikariConfig config = new HikariConfig(); HikariConfig config = new HikariConfig();
config.setMaximumPoolSize(50); config.setMaximumPoolSize(Runtime.getRuntime().availableProcessors() * 2);
config.setJdbcUrl("jdbc:mysql://" + ConfigManager.MB_DATABASE_ADDRESS.getValue() + config.setJdbcUrl("jdbc:mysql://" + ConfigManager.MB_DATABASE_ADDRESS.getValue() +
":" + ConfigManager.MB_DATABASE_PORT.getValue() + "/" + ":" + ConfigManager.MB_DATABASE_PORT.getValue() + "/" +

Loading…
Cancel
Save