Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1-beta1
-
Component/s: Persistence
-
Labels:None
Description
I have configured 2nd level cache for a domain class using:
static mapping = {
cache usage:'nonstrict-read-write'
}
but with show_sql=true set, I see for everything I do the a new sql statement to be executed.
2nd level is configured by default as far as I could see the DataSource created:
hibernate {
cache.use_second_level_cache=true
cache.use_query_cache=true
cache.provider_class='org.hibernate.cache.EhCacheProvider'
}
When I navigate multiple times to the list screen of the domain class I would not expect each time a select * to be done. But this is the case.
Also see http://www.nabble.com/Caching-reference-data-lists-td16984098.html
Issue Links
| This issue is related to: | ||||
| GRAILS-2895 | Add ability to use query cache on dynamic finder methods of domain classes |
|
|
|
Maybe the issue is related to
GRAILS-2693GRAILS-2693