Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 6173 invoked from network); 10 Aug 2007 09:26:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Aug 2007 09:26:06 -0000 Received: (qmail 92938 invoked by uid 500); 10 Aug 2007 09:26:02 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 92903 invoked by uid 500); 10 Aug 2007 09:26:02 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 92891 invoked by uid 99); 10 Aug 2007 09:26:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 02:26:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 09:25:58 +0000 Received: from d1-emea-10.sun.com ([192.18.2.120]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l7A9PabA001302 for ; Fri, 10 Aug 2007 09:25:36 GMT Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JMJ00201WPSBJ00@d1-emea-10.sun.com> (original mail from Thomas.Nielsen@Sun.COM) for derby-user@db.apache.org; Fri, 10 Aug 2007 10:25:36 +0100 (BST) Received: from [129.159.112.233] by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JMJ00626WUKSNUJ@d1-emea-10.sun.com> for derby-user@db.apache.org; Fri, 10 Aug 2007 10:25:36 +0100 (BST) Date: Fri, 10 Aug 2007 11:25:31 +0200 From: Thomas Nielsen Subject: Re: Accessing embedded database in JAR file In-reply-to: <42652533-2881-4749-8966-1567B574B69E@bio.gla.ac.uk> Sender: Thomas.Nielsen@Sun.COM To: Derby Discussion Message-id: <46BC2F0B.2060209@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <42652533-2881-4749-8966-1567B574B69E@bio.gla.ac.uk> User-Agent: Thunderbird 2.0.0.0 (X11/20070419) X-Virus-Checked: Checked by ClamAV on apache.org David Leader wrote: >> Does it take that long to start if you use ij as well? Does it make a >> difference wether you run embedded or not? > > Using ij it certainly doesn't take as long, but there is a perceptable > lag before the database connection is made, and the first time a query > is made it is perceptably slower than the second time - perhaps just a > second compared with apparently instantaneous. I haven't done anything > in a non-embedded setup, but I guess you are right and it's something > one just has to live with. If using ij is a lot faster, then there might be something in your app that is causing it to take that long? Might be worth the effort profiling it using Netbeans, Eclipse, jFluid or similar? > Despite a few problems in porting the stuff > from MySQL, I must say that overall I'm very pleased with the result. My > thanks to the Derby team. Thanks for letting the community know :) If you don't mind - what were your top three pains when moving from MySQL to Derby? Cheers, Thomas -- Thomas Nielsen