Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 94290 invoked from network); 16 Mar 2007 10:43:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 10:43:52 -0000 Received: (qmail 46728 invoked by uid 500); 16 Mar 2007 10:44:01 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 46608 invoked by uid 500); 16 Mar 2007 10:44:00 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 46588 invoked by uid 99); 16 Mar 2007 10:44:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 03:44:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@bea.com designates 66.248.192.22 as permitted sender) Received: from [66.248.192.22] (HELO usremg02.bea.com) (66.248.192.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 03:43:49 -0700 Received: from usremr02.bea.com (mailrelay.bea.com [10.160.29.92]) by usremg02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l2GAhR8t008579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 16 Mar 2007 03:43:28 -0700 Received: from repbex02.amer.bea.com (repbex02.bea.com [10.160.26.99]) by usremr02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l2GAhQ4O032150 for ; Fri, 16 Mar 2007 03:43:26 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Performance declined dramatically during a series of delete operation Date: Fri, 16 Mar 2007 03:43:19 -0700 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD63038613CC@repbex02.amer.bea.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Performance declined dramatically during a series of delete operation Thread-Index: Acdna57Bue8CJksVT3+pjoYEKPKmvwATCs+Q References: From: "Patrick Linskey" To: X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.21.151434 X-Virus-Checked: Checked by ClamAV on apache.org Have you tried incrementally calling EM.flush() during the course of your transaction? Also, for deleting that many records, you may want to look at using JPQL's bulk delete APIs. -Patrick --=20 Patrick Linskey BEA Systems, Inc.=20 _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.=20 > -----Original Message----- > From: William Cai [mailto:wcai@xwarelabs.com]=20 > Sent: Thursday, March 15, 2007 6:37 PM > To: open-jpa-dev@incubator.apache.org > Subject: Performance declined dramatically during a series of=20 > delete operation >=20 > Hi list, > I've ran KODO/OpenJPA on Oracle for a while. It works well.=20 > But now I meet a > problem when executing a large series of delete operation=20 > with it -- the > performance is declined dramatically. > The scenario is like below, > 1. About 40 tables, and there are some external references among those > tables. > 2. The operation queries if the target data exist, if yes,=20 > then delete it. > 3. We will delete about 100,000 lines from the tables >=20 > Currently behavior: > First 1500 lines are deleted in about 1 second, but the=20 > later, the slower. > At last it takes 7 minutes to delete 200 lines. >=20 > Did anybody meet such a problem before? Please share your experience. >=20 > Thanks a lot! >=20 > William >=20