Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D894FDF80 for ; Fri, 21 Sep 2012 14:29:07 +0000 (UTC) Received: (qmail 98711 invoked by uid 500); 21 Sep 2012 14:29:07 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 98664 invoked by uid 500); 21 Sep 2012 14:29:07 -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 98532 invoked by uid 99); 21 Sep 2012 14:29:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 14:29:07 +0000 Date: Sat, 22 Sep 2012 01:29:07 +1100 (NCT) From: "garpinc (JIRA)" To: dev@openjpa.apache.org Message-ID: <363384541.107779.1348237747639.JavaMail.jiratomcat@arcas> In-Reply-To: <758162375.107760.1348237387654.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (OPENJPA-2265) An unnecessary select statement appears to be occurring on primary key table 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-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] garpinc updated OPENJPA-2265: ----------------------------- Attachment: testselect0.zip test case to try is the testSelect0 one. When run in the console you will see the select in the trace right after the last alter table > An unnecessary select statement appears to be occurring on primary key table > ---------------------------------------------------------------------------- > > Key: OPENJPA-2265 > URL: https://issues.apache.org/jira/browse/OPENJPA-2265 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 2.2.0 > Reporter: garpinc > Attachments: testselect0.zip > > > This issue pertains to http://openjpa.208410.n2.nabble.com/Can-someone-explain-this-OpenJPA-trace-td7580862.html > Basically I'm seeing an unnecessary select statement of the form: > 1487 test TRACE [main] openjpa.jdbc.SQL - executing prepstmnt 163450945 SELECT t0.otherField1, t0.uniqueField1 FROM KeyClass t0 WHERE t0.pk = ? [params=(long) 0] > My application does millions of these so performance is suffering. I'll be attaching a test case to illustrate. testselect0.zip -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira