Browse Source

#118 Updated connection string for JDBC based tests

Patrick Falls 12 years ago
parent
commit
51fb3586f4

+ 1 - 1
finagle/src/main/scala/com/falmarri/finagle/Finagle.scala

@@ -55,7 +55,7 @@ object FinagleBenchmark extends App {
     ds.setInitialSize(20);
     ds.setInitialSize(20);
     //ds.setValidationQuery("SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS")
     //ds.setValidationQuery("SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS")
     //new java.io.File("target").mkdirs // ensure that folder for database exists
     //new java.io.File("target").mkdirs // ensure that folder for database exists
-    ds.setUrl("jdbc:mysql://" + System.getProperty("db.host", "localhost") + ":3306/hello_world")
+    ds.setUrl("jdbc:mysql://" + System.getProperty("db.host", "localhost") + ":3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true")
     ds
     ds
   }
   }
   
   

+ 1 - 1
lift-stateless/src/main/scala/DB.scala

@@ -20,7 +20,7 @@ object DB {
     ds.setMaxIdle(10);
     ds.setMaxIdle(10);
     ds.setInitialSize(10);
     ds.setInitialSize(10);
     ds.setValidationQuery("SELECT 1")
     ds.setValidationQuery("SELECT 1")
-    ds.setUrl("jdbc:mysql://%s/%s?useUnicode=true&characterEncoding=UTF-8"
+    ds.setUrl("jdbc:mysql://%s/%s?useUnicode=true&characterEncoding=UTF-8&jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
       format (config[String]("db.host"), config[String]("db.name")))
       format (config[String]("db.host"), config[String]("db.name")))
     ds
     ds
   }
   }

+ 1 - 1
play-java/conf/application.conf

@@ -30,7 +30,7 @@ application.langs="en"
 # You can expose this datasource via JNDI if needed (Useful for JPA)
 # You can expose this datasource via JNDI if needed (Useful for JPA)
 # db.default.jndiName=DefaultDS
 # db.default.jndiName=DefaultDS
 db.default.driver= com.mysql.jdbc.Driver
 db.default.driver= com.mysql.jdbc.Driver
-db.default.url="jdbc:mysql://localhost:3306/hello_world"
+db.default.url="jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
 db.default.user=benchmarkdbuser
 db.default.user=benchmarkdbuser
 db.default.password=benchmarkdbpass
 db.default.password=benchmarkdbpass
 db.default.jndiName=DefaultDS
 db.default.jndiName=DefaultDS

+ 1 - 1
play-scala/conf/application.conf

@@ -30,7 +30,7 @@ application.langs="en"
 # You can expose this datasource via JNDI if needed (Useful for JPA)
 # You can expose this datasource via JNDI if needed (Useful for JPA)
 # db.default.jndiName=DefaultDS
 # db.default.jndiName=DefaultDS
 db.default.driver= com.mysql.jdbc.Driver
 db.default.driver= com.mysql.jdbc.Driver
-db.default.url="jdbc:mysql://localhost:3306/hello_world"
+db.default.url="jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
 #db.default.url="jdbc:mysql://192.168.100.101:3306/hello_world"
 #db.default.url="jdbc:mysql://192.168.100.101:3306/hello_world"
 db.default.user=benchmarkdbuser
 db.default.user=benchmarkdbuser
 db.default.password=benchmarkdbpass
 db.default.password=benchmarkdbpass

+ 2 - 2
play1/conf/application.conf

@@ -109,13 +109,13 @@ db.pool.minSize=10
 # generic "destroy" method :
 # generic "destroy" method :
 # db.destroyMethod=close
 # db.destroyMethod=close
 db.driver= com.mysql.jdbc.Driver
 db.driver= com.mysql.jdbc.Driver
-db.url=jdbc:mysql://localhost:3306/hello_world
+db.url=jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.user=benchmarkdbuser
 db.user=benchmarkdbuser
 db.pass=benchmarkdbpass
 db.pass=benchmarkdbpass
 db.jndiName=DefaultDS
 db.jndiName=DefaultDS
 
 
 db.default.driver= com.mysql.jdbc.Driver
 db.default.driver= com.mysql.jdbc.Driver
-db.default.url=jdbc:mysql://localhost:3306/hello_world
+db.default.url=jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.default.user=benchmarkdbuser
 db.default.user=benchmarkdbuser
 db.default.pass=benchmarkdbpass
 db.default.pass=benchmarkdbpass
 db.default.jndiName=DefaultDS
 db.default.jndiName=DefaultDS

+ 2 - 2
play1siena/conf/application.conf

@@ -109,13 +109,13 @@ db.pool.minSize=10
 # generic "destroy" method :
 # generic "destroy" method :
 # db.destroyMethod=close
 # db.destroyMethod=close
 db.driver= com.mysql.jdbc.Driver
 db.driver= com.mysql.jdbc.Driver
-db.url=jdbc:mysql://localhost:3306/hello_world
+db.url=jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.user=benchmarkdbuser
 db.user=benchmarkdbuser
 db.pass=benchmarkdbpass
 db.pass=benchmarkdbpass
 db.jndiName=DefaultDS
 db.jndiName=DefaultDS
 
 
 db.default.driver= com.mysql.jdbc.Driver
 db.default.driver= com.mysql.jdbc.Driver
-db.default.url=jdbc:mysql://localhost:3306/hello_world
+db.default.url=jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.default.user=benchmarkdbuser
 db.default.user=benchmarkdbuser
 db.default.pass=benchmarkdbpass
 db.default.pass=benchmarkdbpass
 db.default.jndiName=DefaultDS
 db.default.jndiName=DefaultDS

+ 1 - 1
unfiltered/src/main/resources/application.conf

@@ -1,5 +1,5 @@
 db.default.driver=""com.mysql.jdbc.Driver""
 db.default.driver=""com.mysql.jdbc.Driver""
-db.default.url = "jdbc:mysql://localhost:3306/hello_world"
+db.default.url = "jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
 db.default.user = "benchmarkdbuser"
 db.default.user = "benchmarkdbuser"
 db.default.password = "benchmarkdbpass"
 db.default.password = "benchmarkdbpass"
 db.default.minConnections = 4
 db.default.minConnections = 4