criteria cache false,but totalCount cache true
Open
relates-to: grails-data-hibernate5
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
criteria cache false setting :
`def criteria = Entity.createCriteria()
`
`def result = criteria.list([cache: false]) {
....
}`
but `result.totalCount` still use cache
how can i close totalCount cache?
Thanks
Contributor guide
Research direction
Start at Entity.createCriteria and the criteria.list([cache: false]) entry point, then trace how result.totalCount obtains its count. Reproduce the behavior and verify whether the total-count query honors the cache setting; done means cache: false prevents cached totalCount results as well.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100