Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AB9F98A2 for ; Tue, 13 Mar 2012 17:40:43 +0000 (UTC) Received: (qmail 7585 invoked by uid 500); 13 Mar 2012 17:40:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 7523 invoked by uid 500); 13 Mar 2012 17:40:39 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 7460 invoked by uid 99); 13 Mar 2012 17:40:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 17:40:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dionne@dionne-associates.com designates 67.222.55.9 as permitted sender) Received: from [67.222.55.9] (HELO oproxy7-pub.bluehost.com) (67.222.55.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Mar 2012 17:40:33 +0000 Received: (qmail 24934 invoked by uid 0); 13 Mar 2012 17:40:11 -0000 Received: from unknown (HELO host183.hostmonster.com) (74.220.207.183) by oproxy7.bluehost.com with SMTP; 13 Mar 2012 17:40:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dionne-associates.com; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=u4fQrr40OuplR1DtMjCOKk56fYmKVRB2bGgtkKrdYcc=; b=ibIHKxzf6qmGO03jtriVE3lhPNopC26AYyV6UnZb5tPWHnJc2oIV+ZG5TqxQ6uMwtnPlf+nlSE8rCptNNJwtCwWXYvMJzhYUXvhMkPAz/x+idP/la3Z7gAWswoB8823F; Received: from adsl-99-35-56-4.dsl.wlfrct.sbcglobal.net ([99.35.56.4] helo=[192.168.1.115]) by host183.hostmonster.com with esmtpa (Exim 4.76) (envelope-from ) id 1S7Vhj-0003Og-4w for dev@couchdb.apache.org; Tue, 13 Mar 2012 11:40:11 -0600 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Fundamentals Question on CoucheDB's append only b+tree. From: Bob Dionne In-Reply-To: <5293620AC1A91649BDD85E5380BC837A79A808@uksrpblkexb02.detica.com> Date: Tue, 13 Mar 2012 13:40:09 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5293620AC1A91649BDD85E5380BC837A79A808@uksrpblkexb02.detica.com> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1257) X-Identified-User: {2551:host183.hostmonster.com:dionneas:dionne-associates.com} {sentby:smtp auth 99.35.56.4 authed with dionne@dionne-associates.com} X-Virus-Checked: Checked by ClamAV on apache.org On Mar 13, 2012, at 1:26 PM, Davies, Owain wrote: > Hi, >=20 > I have been reading the couchDB guide, particularly the appendix on = the > power of b-trees. As I understand it couchdb uses a b+tree, in which = the > leaf nodes have pointers to their siblings to facilitate quick = in-order > and reverse in-order enumeration of the documents in the b+tree. >=20 > When a document is modified (or added), then the document is appended = to > the file, the leaf node is cloned and updated to point to the new > document. However in order to maintain the linked list between the > sibling leaf nodes, you would need to update the adjacent link nodes > (creating new leaf nodes appended onto the end of the file), this will > eventually require that the whole tree is replicated, not just the = node > on the path to the effected leaf node. >=20 > I do not think this can be the case, could somebody point out where I > have made the mistake?=20 yes, the leaf nodes in couchdb are not linked >=20 > Thanks, >=20 > Owain >=20 > Please consider the environment before printing this email. >=20 > This message should be regarded as confidential. If you have received = this email in error please notify the sender and destroy it immediately. >=20 > Statements of intent shall only become binding when confirmed in hard = copy by an authorised signatory.=20 >=20 > The contents of this email may relate to dealings with other companies = under the control of BAE Systems plc details of which can be found at = http://www.baesystems.com/Businesses/index.htm. >=20 > Detica Limited is a BAE Systems company trading as BAE Systems Detica. > Detica Limited is registered in England and Wales under No: 1337451. > Registered office: Surrey Research Park, Guildford, Surrey, GU2 7YP, = England. >=20