Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 97106 invoked from network); 31 Jul 2008 03:59:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2008 03:59:25 -0000 Received: (qmail 34465 invoked by uid 500); 31 Jul 2008 03:59:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 34446 invoked by uid 500); 31 Jul 2008 03:59:21 -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 34423 invoked by uid 99); 31 Jul 2008 03:59:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 20:59:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Thu, 31 Jul 2008 03:58:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C7EC234C17E for ; Wed, 30 Jul 2008 20:58:31 -0700 (PDT) Message-ID: <772986078.1217476711560.JavaMail.jira@brutus> Date: Wed, 30 Jul 2008 20:58:31 -0700 (PDT) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-671) QueryCache can hinder the change in FetchPlan to take effect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org QueryCache can hinder the change in FetchPlan to take effect ------------------------------------------------------------ Key: OPENJPA-671 URL: https://issues.apache.org/jira/browse/OPENJPA-671 Project: OpenJPA Issue Type: Bug Reporter: Pinaki Poddar >From OpenJPA manual: "The query cache is enabled by default when the data cache is enabled. ... When you run a query, OpenJPA assembles a key based on the query properties and the parameters used at execution time, and checks for a cached query result. If one is found, the object ids in the cached result are looked up, and the resultant persistence-capable objects are returned. Otherwise, the query is executed against the database, and the object ids loaded by the query are put into the cache." Consider two queries Q1 and Q2 that *only* differ in their fetch plan F1 and F2. This implies QueryKey(Q1) = QueryKey(Q2) because QueryKey does not consider the fetch plan associated with a Query. After Q1 is executed and its results cached, if Q2 is invoked, then OpenJPA considers it to be a cache hit and Q2 is not executed at all effectively ignoring F2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.