apache / apache/grails-core

criteria cache false,but totalCount cache true

Open
#14,458 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.