Skip to content

Commit

Permalink
#118 Updated connection string for JDBC based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalls1 committed Apr 12, 2013
1 parent c448a82 commit 52cbfc9
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion finagle/src/main/scala/com/falmarri/finagle/Finagle.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object FinagleBenchmark extends App {
ds.setInitialSize(20);
//ds.setValidationQuery("SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS")
//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
}

Expand Down
2 changes: 1 addition & 1 deletion lift-stateless/src/main/scala/DB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object DB {
ds.setMaxIdle(10);
ds.setInitialSize(10);
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")))
ds
}
Expand Down
2 changes: 1 addition & 1 deletion play-java/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ application.langs="en"
# You can expose this datasource via JNDI if needed (Useful for JPA)
# db.default.jndiName=DefaultDS
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.password=benchmarkdbpass
db.default.jndiName=DefaultDS
Expand Down
2 changes: 1 addition & 1 deletion play-scala/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ application.langs="en"
# You can expose this datasource via JNDI if needed (Useful for JPA)
# db.default.jndiName=DefaultDS
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.user=benchmarkdbuser
db.default.password=benchmarkdbpass
Expand Down
4 changes: 2 additions & 2 deletions play1/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ db.pool.minSize=10
# generic "destroy" method :
# db.destroyMethod=close
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.pass=benchmarkdbpass
db.jndiName=DefaultDS

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.pass=benchmarkdbpass
db.default.jndiName=DefaultDS
Expand Down
4 changes: 2 additions & 2 deletions play1siena/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ db.pool.minSize=10
# generic "destroy" method :
# db.destroyMethod=close
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.pass=benchmarkdbpass
db.jndiName=DefaultDS

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.pass=benchmarkdbpass
db.default.jndiName=DefaultDS
Expand Down
2 changes: 1 addition & 1 deletion unfiltered/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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.password = "benchmarkdbpass"
db.default.minConnections = 4
Expand Down

0 comments on commit 52cbfc9

Please sign in to comment.