From 4f7bb6de0b30b0a013fa93bcac24fb994fdf4599 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 May 2023 13:25:50 -0400 Subject: [PATCH] Using server side statement cache (500). --- src/engine/gameManager/DbManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 17d01365..ebd7dc5f 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -307,9 +307,11 @@ public enum DbManager { config.setPassword(ConfigManager.MB_DATABASE_PASS.getValue()); config.addDataSourceProperty("characterEncoding", "utf8"); config.addDataSourceProperty("cachePrepStmts", "true"); - config.addDataSourceProperty("prepStmtCacheSize", "250"); + config.addDataSourceProperty("useServerPrepStmts", "true"); + config.addDataSourceProperty("prepStmtCacheSize", "500"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048"); config.addDataSourceProperty("leakDetectionThreshold", "5000"); + config.addDataSourceProperty("cacheServerConfiguration", "true"); connectionPool = new HikariDataSource(config); // setup the connection pool