Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 40512 invoked from network); 5 Dec 2008 02:17:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2008 02:17:27 -0000 Received: (qmail 53331 invoked by uid 500); 5 Dec 2008 02:17:39 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 53250 invoked by uid 500); 5 Dec 2008 02:17:39 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 53240 invoked by uid 99); 5 Dec 2008 02:17:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 18:17:39 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 02:16:18 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id C7DB6118D4 for ; Fri, 5 Dec 2008 02:16:36 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Fri, 05 Dec 2008 02:16:36 -0000 Message-ID: <20081205021636.10005.25394@eos.apache.org> Subject: [Couchdb Wiki] Update of "How to store hierarchical data" by PaulBonser X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by PaulBonser: http://wiki.apache.org/couchdb/How_to_store_hierarchical_data ------------------------------------------------------------------------------ == Getting a subtree == - To get all the nodes which are underneath a specific node, I implemented the view's reduce function as follows: + To get all the nodes which are underneath a specific node, I implemented the view's map function as follows: {{{ function(doc) {