Incrase the auto poolSize value

This commit is contained in:
Gabriele C 2017-02-15 23:27:25 +01:00
parent 8ac4ea05f6
commit f0f2398e47

View File

@ -99,7 +99,7 @@ public class MySQL implements DataSource {
this.wordpressPrefix = settings.getProperty(HooksSettings.WORDPRESS_TABLE_PREFIX);
this.poolSize = settings.getProperty(DatabaseSettings.MYSQL_POOL_SIZE);
if (poolSize == -1) {
poolSize = Utils.getCoreCount();
poolSize = Utils.getCoreCount()*3;
}
this.useSSL = settings.getProperty(DatabaseSettings.MYSQL_USE_SSL);
}