Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 25250 invoked from network); 13 Jul 2009 14:55:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jul 2009 14:55:55 -0000 Received: (qmail 53907 invoked by uid 500); 13 Jul 2009 14:56:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 53858 invoked by uid 500); 13 Jul 2009 14:56:04 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 53848 invoked by uid 99); 13 Jul 2009 14:56:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 14:56:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of awolff@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 14:55:55 +0000 Received: by qw-out-2122.google.com with SMTP id 3so779157qwe.29 for ; Mon, 13 Jul 2009 07:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xNDkylHXfaSpuNf/Yttop8HB6YZWaGHmLmg3zGZjUpc=; b=UMgoxXaD3xxRC61Mx3A9zNZJ2ibTHOuQw/jlFV6lADRygj0Ew7epggEUEHjccM4+wE hf2a+uvGYKNFMJnvdu1dRDex8T+hEfElOvwjSZVfaFo46Zeixz/WxxIx1FSoLABhyd9h 02JpVXYQwHVgTQyr7GCUxS7zsDBdWv3CEGtKo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=uKOU46lxw39XDRY+BG1pZQCI8Zm4ao6iDgfvdo+2JWcUZKa2C+VT5Dg1xdaV2joyI/ 8b5Cju8v297xV8fFHTsgT+0q148OLdMQO+4rgRSdG69aSX6suizzASh9VQczfIXKrdZd z+tgrc3dLM5ARq4azKfbBK5JFrZ8SZngtBy/Q= MIME-Version: 1.0 Received: by 10.229.82.81 with SMTP id a17mr817454qcl.107.1247496934146; Mon, 13 Jul 2009 07:55:34 -0700 (PDT) In-Reply-To: <5cd531ee0907130651k2f59b926y990ba0454cec8431@mail.gmail.com> References: <5cd531ee0907130651k2f59b926y990ba0454cec8431@mail.gmail.com> Date: Mon, 13 Jul 2009 07:55:34 -0700 Message-ID: Subject: Re: DAGs (directed acyclic graphs) in couchdb From: Adam Wolff To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00163646d6dc9e4470046e97834a X-Virus-Checked: Checked by ClamAV on apache.org --00163646d6dc9e4470046e97834a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit There didn't turn out to be a good solution, that I found at least. In our app, we're just storing a reference to the root node and putting the DAG together on the client side. A On Mon, Jul 13, 2009 at 6:51 AM, Jason Sachs wrote: > This thread ( > http://mail-archives.apache.org/mod_mbox/couchdb-user/200812.mbox/%3Ce8d26ac40812120812l43046a3i7754c9b2bdcac764@mail.gmail.com%3E > ) > mentioned directed acyclic graphs briefly... but if there was a moment > of enlightenment on good ways to represent DAGs in couchdb, I must > have missed it. Any thoughts? I've read the hierarchy page on the wiki > (http://wiki.apache.org/couchdb/How_to_store_hierarchical_data) but it > requires each node to store its materialized path. DAGs don't have a > single unique path to nodes, and even if you tweaked this design to > list the multiple paths to a node from the root (or from a designated > root, since a DAG doesn't really have the concept of a root, and can > have multiple roots), you still have the possibility of combinatorial > explosions of data. > --00163646d6dc9e4470046e97834a--