Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 7437 invoked from network); 17 Feb 2009 21:31:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 21:31:23 -0000 Received: (qmail 29222 invoked by uid 500); 17 Feb 2009 21:31:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 29202 invoked by uid 500); 17 Feb 2009 21:31:22 -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 29191 invoked by uid 99); 17 Feb 2009 21:31:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 13:31:22 -0800 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; Tue, 17 Feb 2009 21:31:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8DD4A234C48B for ; Tue, 17 Feb 2009 13:30:59 -0800 (PST) Message-ID: <604960895.1234906259565.JavaMail.jira@brutus> Date: Tue, 17 Feb 2009 13:30:59 -0800 (PST) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-703) Cache ResultObjectProvider data to improve query performance In-Reply-To: <1464774417.1219684184194.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pinaki Poddar resolved OPENJPA-703. ----------------------------------- Resolution: Fixed Fix Version/s: 2.0.0-M1 > Cache ResultObjectProvider data to improve query performance > ------------------------------------------------------------ > > Key: OPENJPA-703 > URL: https://issues.apache.org/jira/browse/OPENJPA-703 > Project: OpenJPA > Issue Type: Improvement > Components: kernel > Reporter: Ron Pressler > Assignee: Pinaki Poddar > Fix For: 2.0.0-M1 > > Attachments: PreparedQueryCache.pdf > > > Profiling indicated that JDBCStoreQuery.populateSelect consumes a significant amount of CPU, and is executed every time a query is run. While, in fact, the actual PreparedStatement is created and run only in QueryImpl.toResult. It seems like the returned ResultObjectProvider from JDBCStoreQuery.executeQuery can be at least partially cached, or even cached in its entirety (provided care is taken with the context parameters). > It seems like such an improvement would significantly improve query performance. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.