Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54D946749 for ; Tue, 14 Jun 2011 14:48:17 +0000 (UTC) Received: (qmail 45761 invoked by uid 500); 14 Jun 2011 14:48:17 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 45735 invoked by uid 500); 14 Jun 2011 14:48:17 -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 45726 invoked by uid 99); 14 Jun 2011 14:48:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 14:48:17 +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,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of curtisr7@gmail.com designates 209.85.214.174 as permitted sender) Received: from [209.85.214.174] (HELO mail-iw0-f174.google.com) (209.85.214.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 14:48:10 +0000 Received: by iwn34 with SMTP id 34so6686781iwn.33 for ; Tue, 14 Jun 2011 07:47:49 -0700 (PDT) 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=zBtqmAUR2Q8qMo9u6ddFbein5WUXiYUGEdKz0J08+lQ=; b=lQkRwBBLvnoc7Yl+Xu+WbcjuqWXmjwGk4pUJzbFDzYlalRosytlP6O/1aEUtRy7uzf vH5hTCLVdoIDRw++xAaOA91oFVWwnTERHgaVLKe2uWC59UQGYcmNyZQsXKo+5kJcLaR5 yHCa0WzN523aTqKrT3Mlh/zaEkpqblxtYGVcs= 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=uV/Dkgi/QS5J6IMFj3Ai7IXBHkDHjJBgxuyDZ08N+aGVSOgo4IFVPuLExp1mGi0vqT /Sf7kzn6ZMwhYjHbH3lZuSdRiZtdh9mS35eM2hwGsZuNk3glw+t8Ob5EKF0VV9yRCPmg 5Dj5t7O1c1Udlq+hmeNoML6y09VWUP3Bv4PHA= MIME-Version: 1.0 Received: by 10.231.207.209 with SMTP id fz17mr6471828ibb.140.1308062869330; Tue, 14 Jun 2011 07:47:49 -0700 (PDT) Received: by 10.231.32.205 with HTTP; Tue, 14 Jun 2011 07:47:49 -0700 (PDT) In-Reply-To: <4DF773FE.4080902@cambridgesemantics.com> References: <4DF773FE.4080902@cambridgesemantics.com> Date: Tue, 14 Jun 2011 09:47:49 -0500 Message-ID: Subject: Re: Speeding up commit From: Rick Curtis To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=00504502be8bab9d0e04a5ad1eab X-Virus-Checked: Checked by ClamAV on apache.org --00504502be8bab9d0e04a5ad1eab Content-Type: text/plain; charset=ISO-8859-1 What version of OpenJPA are you running? On Tue, Jun 14, 2011 at 9:45 AM, Aron Lurie wrote: > Hello, > I have a situation where I am trying to persist ~2500 objects all at once. > After the objects are persisted, the program ends, so there is no need for > any functionality after the objects have been persisted. I am just trying to > dump these objects to the DB as fast as possible. > > Using Eclipse's TPTP profiler, I have timed the EntityManager.commit() > operation to take 586 seconds. Of that, cumulatively almost 455 seconds are > spent inside of ~2500 calls to StateManagerImpl.proxyFields(bool, bool). > From the point that I start commit(), those 2nd class objects are not > mutated by my program, and I do not need to use any of these objects after > commit() finishes. From what I have read, it would seem that I have no need > for my objects to be proxied, and from my tests, it seems that removing > proxies would speed things up significantly. Am I missing something? Or is > there a way to turn off proxies? And if not, how can I speed up the proxying > operation? > > Thanks, > Aron > -- *Rick Curtis* --00504502be8bab9d0e04a5ad1eab--