Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 47020 invoked from network); 30 Mar 2010 03:45:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Mar 2010 03:45:49 -0000 Received: (qmail 65563 invoked by uid 500); 30 Mar 2010 03:45:49 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 65401 invoked by uid 500); 30 Mar 2010 03:45:48 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 65392 invoked by uid 99); 30 Mar 2010 03:45:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Mar 2010 03:45:48 +0000 X-ASF-Spam-Status: No, hits=-1170.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Mar 2010 03:45:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2FBE3234C495 for ; Tue, 30 Mar 2010 03:45:27 +0000 (UTC) Message-ID: <1109728652.570681269920727194.JavaMail.jira@brutus.apache.org> Date: Tue, 30 Mar 2010 03:45:27 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1603) Decouple the QueryCache from the DataCache In-Reply-To: <1659023097.557801269892827392.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851234#action_12851234 ] Rick Curtis commented on OPENJPA-1603: -------------------------------------- Committed rev. 928968 to the 2.0.x branch. I had to make a couple last minute changes to the two new Entities that were added with this JIRA to get all of the tests to pass. Mike -- if you don't like what I've done, feel free to change/update the Entities properly. Another note, currently to get a reference to the QueryCache you need to go through the DataCacheManager. Ideally you wouldn't need to do this, but I'm trying to limit my changes to the bare essentials to limit additional churn. > Decouple the QueryCache from the DataCache > ------------------------------------------ > > Key: OPENJPA-1603 > URL: https://issues.apache.org/jira/browse/OPENJPA-1603 > Project: OpenJPA > Issue Type: Improvement > Components: datacache > Affects Versions: 2.0.0 > Reporter: Rick Curtis > Assignee: Rick Curtis > Fix For: 2.0.0 > > > In doing some testing I have found that there is a valid use case where one would want to use the query results cache (openjpa.QueryCache), but not the DataCache. I'm using this JIRA to remove the dependency between these two caches. > The gist of this change is that the QueryCache will now talk with the StoreContext to see if the results of a cached query are contained in the L1 cache OR by any of the DelegatingStoreManager's cache. The default JDBCStoreManager and the XMLStoreManager both do not have any concept of a cache and will always not have any cached results. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.