root/trunk/grails-app/conf/DataSource.groovy @ 1616

Revision 1616, 0.7 KB (checked in by work@…, 3 years ago)

- commiting a hibernate performance tweak, all still seems to work?

  • Property svn:keywords set to Rev Author Date
Line 
1/**
2 * Default datasource configuration
3 *
4 * See environment specific configuration!
5 *
6 * @author Jeroen Wesbeek
7 * @since 20110110
8 *
9 * Revision information:
10 * $Rev$
11 * $Author$
12 * $Date$
13 */
14dataSource {
15        pooled = true
16        driverClassName = "org.hsqldb.jdbcDriver"
17        dbCreate = "create-drop" // one of 'create', 'create-drop','update'
18        url = "jdbc:hsqldb:mem:devDB"
19        username = "sa"
20        password = ""
21}
22hibernate {
23        cache.use_second_level_cache = true
24        cache.use_query_cache = true
25        cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
26
27        // hibernate performance tweak, see:
28        // http://schneide.wordpress.com/2011/03/08/the-grails-performance-switch-flush-modecommit/
29        flush.mode='commit'
30}
Note: See TracBrowser for help on using the browser.