From 165c5610c3bbf202db67b774a889366fe17282f1 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 16 Oct 2016 17:24:02 +0100 Subject: [PATCH] Add extra Hikari flag --- .../lucko/luckperms/common/storage/methods/MySQLDatastore.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java b/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java index 5500d7fac..733f00bad 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java @@ -69,6 +69,7 @@ public class MySQLDatastore extends SQLDatastore { config.addDataSourceProperty("cachePrepStmts", true); config.addDataSourceProperty("prepStmtCacheSize", 250); config.addDataSourceProperty("prepStmtCacheSqlLimit", 2048); + config.addDataSourceProperty("leakDetectionThreshold", 5000); config.addDataSourceProperty("useServerPrepStmts", true); config.addDataSourceProperty("cacheCallableStmts", true); config.addDataSourceProperty("alwaysSendSetIsolation", false);