forked from LogBlock/LogBlock
Set pool's minimum idle connections to 2 and gave the pool a name
This commit is contained in:
@ -18,6 +18,9 @@ public class MySQLConnectionPool implements Closeable
|
||||
ds.setUsername(user);
|
||||
ds.setPassword(password);
|
||||
|
||||
ds.setMinimumIdle(2);
|
||||
ds.setPoolName("LogBlock-Connection-Pool");
|
||||
|
||||
ds.addDataSourceProperty("useUnicode", "true");
|
||||
ds.addDataSourceProperty("characterEncoding", "utf-8");
|
||||
ds.addDataSourceProperty("rewriteBatchedStatements", "true");
|
||||
|
Reference in New Issue
Block a user