From owner-freebsd-questions@FreeBSD.ORG Sat Nov 24 17:50:53 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3525F16A469 for ; Sat, 24 Nov 2007 17:50:53 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 21D8A13C447 for ; Sat, 24 Nov 2007 17:50:53 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAOHolKw013424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 24 Nov 2007 09:50:48 -0800 X-Auth-Received: from [128.208.5.249] (lodovico.cs.washington.edu [128.208.5.249]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAOHol5f009383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 24 Nov 2007 09:50:47 -0800 Message-ID: <474864A3.3040000@u.washington.edu> Date: Sat, 24 Nov 2007 09:51:31 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Jurjen Middendorp , freebsd-questions@freebsd.org References: <754560.26481.qm@web50101.mail.re2.yahoo.com> <20071124180637.GB2727@s062107.lan> In-Reply-To: <20071124180637.GB2727@s062107.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.24.93244 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_419_BADTHINGS 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: FreeBSD 7.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 17:50:53 -0000 Jurjen Middendorp wrote: > On Thu, Nov 22, 2007 at 10:43:24PM -0800, kasthurirangan balaji wrote: > >> Hi, >> >> I am using FreeBSD 6.1 on my laptop. I understand that >> FreeBSD 7.0 will have ZFS file system. I did go >> through the sun website to understand the advantages >> of ZFS. Given that, will FreeBSD have a >> BTree/B+Tree(replicating c++ multimaps, but file >> based) by default on ZFS which i guess should be very >> useful for persons like me who do not want a full >> fledged database with all SQL features. I am aware of >> the existence of dbm/ndbm/gdbm, but i guess all >> support hash. If my thoughts are wrong, pls correct >> me. I also hope that i have sent to the correct >> mailing list. >> >> Thanks, >> Balaji. >> > > Hello! > i don't know about the filesystem things, but if you want a data > base to program with, you can have a look at dbopen(3) :) > - jurjen As jurjen suggested, BDB can assist you in that way, but be aware of the caveats of using BDB over SQL (primarily the non-ATOM'ic property). But in terms of the C++ API, it only exists with the GNU friendly version of BDB (4.x) which is significantly different in terms of interface than the one packaged with libc in FreeBSD (1.85). See btree(3) for more info there. -Garrett