Incrase the auto poolSize value
This commit is contained in:
parent
8ac4ea05f6
commit
f0f2398e47
@ -99,7 +99,7 @@ public class MySQL implements DataSource {
|
|||||||
this.wordpressPrefix = settings.getProperty(HooksSettings.WORDPRESS_TABLE_PREFIX);
|
this.wordpressPrefix = settings.getProperty(HooksSettings.WORDPRESS_TABLE_PREFIX);
|
||||||
this.poolSize = settings.getProperty(DatabaseSettings.MYSQL_POOL_SIZE);
|
this.poolSize = settings.getProperty(DatabaseSettings.MYSQL_POOL_SIZE);
|
||||||
if (poolSize == -1) {
|
if (poolSize == -1) {
|
||||||
poolSize = Utils.getCoreCount();
|
poolSize = Utils.getCoreCount()*3;
|
||||||
}
|
}
|
||||||
this.useSSL = settings.getProperty(DatabaseSettings.MYSQL_USE_SSL);
|
this.useSSL = settings.getProperty(DatabaseSettings.MYSQL_USE_SSL);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user