Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 80632 invoked from network); 29 Aug 2006 16:20:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2006 16:20:49 -0000 Received: (qmail 235 invoked by uid 500); 29 Aug 2006 16:20:48 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 167 invoked by uid 500); 29 Aug 2006 16:20:48 -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 151 invoked by uid 99); 29 Aug 2006 16:20:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 09:20:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.249] (HELO nwkea-pix-1.sun.com) (192.18.42.249) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 09:20:47 -0700 Received: from d1-sfbay-09.sun.com ([192.18.39.119]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k7TGKQkN014300 for ; Tue, 29 Aug 2006 09:20:26 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-09.sun.com by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J4R00G01PDM1G00@d1-sfbay-09.sun.com> (original mail from David.Vancouvering@Sun.COM) for derby-user@db.apache.org; Tue, 29 Aug 2006 09:20:26 -0700 (PDT) Received: from [192.9.61.102] by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J4R0016WPE28Q7A@d1-sfbay-09.sun.com> for derby-user@db.apache.org; Tue, 29 Aug 2006 09:20:26 -0700 (PDT) Date: Tue, 29 Aug 2006 09:20:41 -0700 From: David Van Couvering Subject: Re: Derby vs. Hypersonic SQL In-reply-to: <44F403C6.2000800@intland.com> Sender: David.Vancouvering@Sun.COM To: Derby Discussion Message-id: <44F46959.5030701@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <44F403C6.2000800@intland.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060427) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, you're obviously going to get a slanted opinion here, but I suspect you're sending a similar email to the HSQL folks :) I'm not sure why you think Hypersonic is a more mature product, when Cloudscape/Derby has been around and in production in some form or another for 10 years... Feature-by-feature Derby and HSQL are pretty close -- they're both embeddable, they both have strong SQL support. I think Derby has XA support and passes the Java EE compatibility test, and I am pretty sure HSQL doesn't. Also, as of 10.2 Derby has support for online backup, I don't think HSQL does. As I see it, Hypersonic SQL has the following advantages: - Super fast, especially when you can run it completely in memory - Very small However, it has the following disadvantages: - It does not provide transactional guarantees in multi-user environments -- you can end up with a corrupt database [1] - Support comes solely from the community. For this reason, you may or may not feel comfortable putting it in production. Derby is larger (if you count 2MB as "large" for a database) and generally slower than HSQL, but for many people it's quite fast enough, especially running embedded. Also, you can get support for Derby (aka Java DB and Cloudscape) from either Sun or IBM. [1] This is not just a theoretical issue, I have talked to a number of folks who have run into support issues because of this. Here is a quote from the Confluence web site, which ships with HSQL by default: "Confluence is configured to run with its own embedded database. However, this is recommended only for evaluation or demonstration. To ensure your data is kept safe and consistent, we recommend production deployments of Confluence using one of these external databases: " By the way, has anybody talked to the Confluence folks about switching to Derby, so they can get rid of this warning? David Robert Enyedi wrote: > Hi, > > We have a MySQL database with around 50 tables and we are thinking about > supporting other database engines too. After studying the options on the > Java DB engine implementations, it seems that there are two important > contenders: Apache Derby and Hypersonic SQL. While our feeling is that > Hypersonic SQL is a more mature product, Derby seems to be hyped about a > lot these days and it also has quite some history since the days of > Informix and Cloudscape. > > Could you please help in our decision by pointing out some advantages > and shortcomings of Apache Derby versus Hypersonic SQL? > > Thanks, > Robert