cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2224) Make SelectQueryMetadata cache key generation aware of SelectQuery columns and name
Date Fri, 10 Feb 2017 13:15:42 GMT
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)

Mime
View raw message