You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/02/10 13:15:42 UTC
[jira] [Created] (CAY-2224) Make SelectQueryMetadata cache key
generation aware of SelectQuery columns and name
Nikita Timofeev created CAY-2224:
------------------------------------
Summary: Make SelectQueryMetadata cache key generation aware of SelectQuery columns and name
Key: CAY-2224
URL: https://issues.apache.org/jira/browse/CAY-2224
Project: Cayenne
Issue Type: Bug
Components: Core Library
Affects Versions: 4.0.M5
Reporter: Nikita Timofeev
Assignee: Nikita Timofeev
Fix For: 4.0.M5
First problem is that queries like {{ObjectSelect.query(Artist.class).select(..)}} and {{ObjectSelect.query(Artist.class).selectCount(..)}} have the same cache key.
Another problem is that MapQueryCache can't distinguish cache entries when QueryMetadata differs only with cache groups.
So may be it is a good idea to use query name as part of cache key (if it is set).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)