Skip to content

Commit ca28e6e

Browse files
committed
GRAILS-11536 set the default flush mode outside of transactions as "manual"
- inside transactions the flush mode is always "auto" (non-configurable) - read-only transacions have the "manual" flush mode
1 parent 8a3a410 commit ca28e6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grails-resources/src/grails/grails-app/conf/DataSource.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ hibernate {
1111
// cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3
1212
cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
1313
singleSession = true // configure OSIV singleSession mode
14+
flush.mode = 'manual' // OSIV session flush mode outside of transactional context
1415
}
1516

1617
// environment specific settings

0 commit comments

Comments
 (0)