|
@@ -6,8 +6,9 @@ var dbHost = '172.16.98.98';
|
|
|
|
|
|
// create and configure store
|
|
// create and configure store
|
|
var connectionPool = module.singleton("connectionPool", function() {
|
|
var connectionPool = module.singleton("connectionPool", function() {
|
|
|
|
+ var mysqlConnectionProperties = "?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useServerPrepStmts&enableQueryTimeouts=false&useUnbufferedIO=false&useReadAheadInput=false&maintainTimeStats=false&cacheRSMetadata=true";
|
|
return new ConnectionPool({
|
|
return new ConnectionPool({
|
|
- "url": "jdbc:mysql://" + dbHost + "/hello_world",
|
|
|
|
|
|
+ "url": "jdbc:mysql://" + dbHost + "/hello_world" + mysqlConnectionProperties,
|
|
"driver": "com.mysql.jdbc.Driver",
|
|
"driver": "com.mysql.jdbc.Driver",
|
|
"username": "benchmarkdbuser",
|
|
"username": "benchmarkdbuser",
|
|
"password": "benchmarkdbpass"
|
|
"password": "benchmarkdbpass"
|