Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 3699 invoked from network); 5 Jan 2009 14:52:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 14:52:18 -0000 Received: (qmail 87581 invoked by uid 500); 5 Jan 2009 14:52:17 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 87552 invoked by uid 500); 5 Jan 2009 14:52:17 -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 87543 invoked by uid 99); 5 Jan 2009 14:52:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 06:52:17 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 14:52:07 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n05EpYH7015073 for ; Mon, 5 Jan 2009 14:51:46 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KD00010161I5T00@fe-emea-10.sun.com> (original mail from Dag.Wanvik@Sun.COM) for derby-user@db.apache.org; Mon, 05 Jan 2009 14:51:34 +0000 (GMT) Received: from khepri23.norway.sun.com ([129.159.112.235]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KD000FCR6LVI0B0@fe-emea-10.sun.com> for derby-user@db.apache.org; Mon, 05 Jan 2009 14:51:31 +0000 (GMT) Date: Mon, 05 Jan 2009 15:51:31 +0100 From: Dag.Wanvik@Sun.COM (Dag H. Wanvik) Subject: Re: is there a lower-level (non-SQL) API for Derby? In-reply-to: Sender: Dag.Wanvik@Sun.COM To: Derby Discussion Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Tim Dugan writes: > I'm looking to see if Derby can be used similarly to Berkeley DB -- > a lower-level API. Can anyone tell me? No, there is no public lower level API. > Maybe to the access area of the "Store Layer" which in some Derby > documentation is described like this: > > "The Store layer is split into two main areas, access and raw. The > access layer presents a conglomerate (table or index)/row based > interface to the SQL layer. It handles table scans, index scans, > index lookups, indexing, sorting, locking policies, transactions, > isolation levels." Right, there are internal layers in the architecture, but they do not constitute public APIs at the present time. Note that when you use Derby embedded combined with prepared statements, the SQL overhead is typically low, we have measured in the order of 15-20% extra for read operations of small records with a simple primary key (we used the internal APIs to make a comparison), where data fit in the in-memory cache. But YMMV, of course. > > Now that Derby is included in Java 16--I am having a really hard > time finding Java documentation that talks about Derby. The Java DB docs are essentially the Derby docs rebundled. You can find them here: http://developers.sun.com/javadb/reference/docs/index.jsp The Derby version is here: http://db.apache.org/derby/manuals/index.html#docs_10.4 Thanks, Dag