Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 51741 invoked from network); 31 Jan 2011 16:15:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Jan 2011 16:15:52 -0000 Received: (qmail 93135 invoked by uid 500); 31 Jan 2011 16:15:52 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 92041 invoked by uid 500); 31 Jan 2011 16:15:49 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 91357 invoked by uid 99); 31 Jan 2011 16:15:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jan 2011 16:15:48 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of curtisr7@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-iy0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jan 2011 16:15:42 +0000 Received: by iyj18 with SMTP id 18so5548566iyj.33 for ; Mon, 31 Jan 2011 08:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=FOYXKtG/UwIpsEyLHxxjIK+Lk9wXmPQ/LPP96powg38=; b=q2o0xBegzEl9gJjaOCpnXyBOUDauaAsom+C1UX0QaF+t2RS+tT6kF6gbfjfZuit62I NyS+Ir/ppIxtlst0eitW5h2CprS2N+jNEcQio9fVyiKR0aouUfSkc242YnaCkVDzWjod R786e9o+MqV9J0Dnba/0j/Af0cXNU/M30bsVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Q5M92g4gGx07EvfAjYWyLTIeY+FaejJfTcEPkgTEpE7vfD3WrAzZ1Y3kTAGxPqeS0n bdOZAfj20fRa2lHuRoYEedSbOov+ysZCJmDZhF3UKKp777ZiTvG+hmWB1qtYIq3r7vYp jI97PBqbfbqW4CXdGUDfUGOL72Stgt410XRmw= MIME-Version: 1.0 Received: by 10.231.31.67 with SMTP id x3mr6925412ibc.11.1296490521281; Mon, 31 Jan 2011 08:15:21 -0800 (PST) Received: by 10.231.32.73 with HTTP; Mon, 31 Jan 2011 08:15:21 -0800 (PST) In-Reply-To: References: Date: Mon, 31 Jan 2011 10:15:21 -0600 Message-ID: Subject: Re: OpenJPA 2.1 clear() is very slow. From: Rick Curtis To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=00032557a342f9c419049b26b816 --00032557a342f9c419049b26b816 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yu - When you call em.clear(), any idea on how many Entities are in your persistence context? Could you provide some sort of pseudo code as to the scenario that you are running? Thanks, Rick On Mon, Jan 31, 2011 at 4:16 AM, =E7=8E=89=E7=B1=B3=E8=80=81 wrote: > Hello, > I upgraded into 1.2.2 and added below line into persistence.xml but it > doesn't really work. In fact I found clere() is still time consuming. > Any suggestions? > value=3D"ReloadOnDetach=3Dfalse, > FlushBeforeDetach=3Dfalse"/> > > Regards, > Yu Wang > > On Mon, Jan 31, 2011 at 2:53 PM, =E7=8E=89=E7=B1=B3=E8=80=81 wrote: > > I guess this may be relevant: > > > > https://issues.apache.org/jira/browse/OPENJPA-1414 > > > > On Mon, Jan 31, 2011 at 1:32 PM, =E7=8E=89=E7=B1=B3=E8=80=81 wrote: > >> sorry, I'm using OpenJPA 1.2.1 not 2.1 > >> > >> On Mon, Jan 31, 2011 at 1:26 PM, =E7=8E=89=E7=B1=B3=E8=80=81 wrote: > >>> Hello experts: > >>> I found sometimes invoking clear() method of entity manager will took > >>> more than 30 seconds. > >>> I don't know if there' re some performance issues or I shouldn't > >>> invoke clear() method first to get updated objects? > >>> > >>> Regards, > >>> Yu Wang > >>> > >> > > > --00032557a342f9c419049b26b816--