mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-01 17:36:46 +01:00
Use prepared statement caching
This commit is contained in:
parent
e9dd0713d6
commit
b7de4b731e
@ -48,6 +48,10 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
||||
connectionProperties.put("user", Config.getInstance().getMySQLUserName());
|
||||
connectionProperties.put("password", Config.getInstance().getMySQLUserPassword());
|
||||
connectionProperties.put("autoReconnect", "false");
|
||||
connectionProperties.put("cachePrepStmts", "true");
|
||||
connectionProperties.put("prepStmtCacheSize", "64");
|
||||
connectionProperties.put("prepStmtCacheSqlLimit", "2048");
|
||||
connectionProperties.put("useServerPrepStmts", "true");
|
||||
connectionPool = new ConnectionPool("mcMMO-Pool",
|
||||
1 /*Minimum of one*/,
|
||||
Config.getInstance().getMySQLMaxPoolSize() /*max pool size */,
|
||||
|
Loading…
Reference in New Issue
Block a user