diff --git a/src/main/java/me/refracdevelopment/simpletags/manager/data/MySQLManager.java b/src/main/java/me/refracdevelopment/simpletags/manager/data/MySQLManager.java index 6b1e9d8..fe1c180 100644 --- a/src/main/java/me/refracdevelopment/simpletags/manager/data/MySQLManager.java +++ b/src/main/java/me/refracdevelopment/simpletags/manager/data/MySQLManager.java @@ -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;