@@ -31,9 +31,7 @@ environments {
3131 dbCreate = " update"
3232 url = " jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE"
3333 properties {
34- // Documentation for Tomcat JDBC Pool
35- // http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#Common_Attributes
36- // https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/jdbc/pool/PoolConfiguration.html
34+ // See http://grails.org/doc/latest/guide/conf.html#dataSource for documentation
3735 jmxEnabled = true
3836 initialSize = 5
3937 maxActive = 50
@@ -49,51 +47,8 @@ environments {
4947 testOnBorrow = true
5048 testWhileIdle = true
5149 testOnReturn = false
52- ignoreExceptionOnPreLoad = true
53- // http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#JDBC_interceptors
5450 jdbcInterceptors = " ConnectionState;StatementCache(max=200)"
55- defaultTransactionIsolation = java.sql.Connection . TRANSACTION_READ_COMMITTED // safe default
56- // controls for leaked connections
57- abandonWhenPercentageFull = 100 // settings are active only when pool is full
58- removeAbandonedTimeout = 120000
59- removeAbandoned = true
60- // use JMX console to change this setting at runtime
61- logAbandoned = false // causes stacktrace recording overhead, use only for debugging
62- /*
63- // JDBC driver properties
64- // Mysql as example
65- dbProperties {
66- // Mysql specific driver properties
67- // http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
68- // let Tomcat JDBC Pool handle reconnecting
69- autoReconnect=false
70- // truncation behaviour
71- jdbcCompliantTruncation=false
72- // mysql 0-date conversion
73- zeroDateTimeBehavior='convertToNull'
74- // Tomcat JDBC Pool's StatementCache is used instead, so disable mysql driver's cache
75- cachePrepStmts=false
76- cacheCallableStmts=false
77- // Tomcat JDBC Pool's StatementFinalizer keeps track
78- dontTrackOpenResources=true
79- // performance optimization: reduce number of SQLExceptions thrown in mysql driver code
80- holdResultsOpenOverStatementClose=true
81- // enable MySQL query cache - using server prep stmts will disable query caching
82- useServerPrepStmts=false
83- // metadata caching
84- cacheServerConfiguration=true
85- cacheResultSetMetadata=true
86- metadataCacheSize=100
87- // timeouts for TCP/IP
88- connectTimeout=15000
89- socketTimeout=120000
90- // timer tuning (disable)
91- maintainTimeStats=false
92- enableQueryTimeouts=false
93- // misc tuning
94- noDatetimeStringSync=true
95- }
96- */
51+ defaultTransactionIsolation = java.sql.Connection . TRANSACTION_READ_COMMITTED
9752 }
9853 }
9954 }
0 commit comments