Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 9350 invoked from network); 5 May 2006 01:17:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2006 01:17:59 -0000 Received: (qmail 90425 invoked by uid 500); 5 May 2006 01:17:58 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 90404 invoked by uid 500); 5 May 2006 01:17:58 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 90395 invoked by uid 99); 5 May 2006 01:17:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 18:17:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lachlan@ish.com.au designates 218.214.52.22 as permitted sender) Received: from [218.214.52.22] (HELO fish.ish.com.au) (218.214.52.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 18:17:57 -0700 Received: from [203.29.62.201] (helo=neuro.net.au) by fish.ish.com.au with esmtps (SSLv3:DES-CBC3-SHA:168) (Exim 4.43) id 1FbwVV-0001gp-7I for cayenne-user@incubator.apache.org; Fri, 05 May 2006 19:21:53 +1000 Received: from [203.29.62.198] (HELO [203.29.62.198]) by neuro.net.au (CommuniGate Pro SMTP 4.3.8) with ESMTP id 2369032 for cayenne-user@incubator.apache.org; Fri, 05 May 2006 11:17:34 +1000 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <445A9FC3.1030002@bristowhill.com> References: <71D8D9B8-D492-4153-8A2F-D96A539264AF@ish.com.au> <445A9FC3.1030002@bristowhill.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A946BE0-9C32-46A0-9768-AE48527465CC@ish.com.au> Content-Transfer-Encoding: 7bit From: Lachlan Deck Subject: Re: EmbeddedDriver performance help Date: Fri, 5 May 2006 11:17:34 +1000 To: cayenne-user@incubator.apache.org X-Mailer: Apple Mail (2.749.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi there, On 05/05/2006, at 10:43 AM, Jean T. Anderson wrote: > Lachlan Deck wrote: >> >> I've been testing an initial population of a Derby database with some >> 30-40000 records and am finding a large performance difference >> between >> using the EmbeddedDriver vs the ClientDriver i.e., depending on >> whether >> Derby is run as an embedded or network service for the application. >> >> Using the Embedded driver seems to take an order of magnitude longer >> than not (e.g., 2-3 hours vs 15 minutes)! > > fascinating. Normally the embedded driver is faster. So I've read. > Which client JDBC driver are you using? For embedded Derby: org.apache.derby.jdbc.EmbeddedDriver For network Derby: org.apache.derby.jdbc.ClientDriver Both are using the adaptor: org.objectstyle.cayenne.dba.derby.DerbyAdapter > Which specific version of Derby are you running? Can you post the > output from: I've tried both the lastest stable and recent nightly build. No difference. > java org.apache.derby.tools.sysinfo $ java -cp "<..>lib/derby.jar" org.apache.derby.tools.sysinfo ------------------ Java Information ------------------ Java Version: 1.5.0_06 Java Vendor: Apple Computer, Inc. Java home: /System/Library/Frameworks/JavaVM.framework/Versions/ 1.5.0/Home Java classpath: "<..>lib/derby.jar:/System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Classes/.compatibility/ 14compatibility.jar OS name: Mac OS X OS architecture: ppc OS version: 10.4.6 Java user name: lachlan Java user home: /Users/lachlan Java user dir: /Users/lachlan java.specification.name: Java Platform API Specification java.specification.version: 1.5 --------- Derby Information -------- JRE - JDBC: J2SE 5.0 - JDBC 3.0 [<...>lib/derby.jar] 10.1.2.1 - (330608) ------------------------------------------------------ ----------------- Locale Information ----------------- ------------------------------------------------------ lachlans-imac:~ lachlan$ Lachlan Deck lachlan@ish.com.au +61 2 9550 5001