Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAEE5990D for ; Wed, 28 Dec 2011 22:08:43 +0000 (UTC) Received: (qmail 79707 invoked by uid 500); 28 Dec 2011 22:08:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 79669 invoked by uid 500); 28 Dec 2011 22:08:42 -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 79661 invoked by uid 99); 28 Dec 2011 22:08:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2011 22:08:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joerlend.schinstad@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2011 22:08:33 +0000 Received: by eeke52 with SMTP id e52so13283514eek.11 for ; Wed, 28 Dec 2011 14:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=B5rpvbFIy1HscXYaFZvyqKntlsidRozpO02YwxN+yPc=; b=dhltC/ZFwKF6tEK6s5eUf4T/GGmpOZhXtkjXnAN9ca04aHaPFP+RewEI2TVlWPyVGP Ww2P/PbEyfFpobzED/xgFC3qv1TVKOjs3hwCSxpfY3jDc5tH6cry61psjvetqyWTcDna oyq/ehCPdEYMpjyCsVtKUZS9lIjpV+XbStdvI= Received: by 10.14.17.82 with SMTP id i58mr13820683eei.14.1325110093080; Wed, 28 Dec 2011 14:08:13 -0800 (PST) Received: from [10.0.0.4] (163.80-202-166.nextgentel.com. [80.202.166.163]) by mx.google.com with ESMTPS id t1sm125942061eeb.3.2011.12.28.14.08.11 (version=SSLv3 cipher=OTHER); Wed, 28 Dec 2011 14:08:12 -0800 (PST) Message-ID: <4EFB9341.1090607@gmail.com> Date: Wed, 28 Dec 2011 23:08:01 +0100 From: Jo-Erlend Schinstad User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Modeling a tree in couchdb. References: <4EF45C4A.5080902@gmail.com> <87zkeet1or.fsf@lifelogs.com> In-Reply-To: <87zkeet1or.fsf@lifelogs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Den 27. des. 2011 17:32, skrev Ted Zlatanov: > How big is this document? If it's like the TreeModels I've used, maybe > you can simply keep the whole connectivity data (the edges of the graph) > in one document, and the nodes have one document each. That way you can > load or update the graph in one shot; replication is simpler; > consistency is better (at worst, a node is missing). Renumbering is > easier as well, since you just load a single document, rewrite it, and > save. > > If this is a huge tree or you expect multiple clients to update the > connectivity graph this is not a great solution. > > Ted > Thanks for the suggestion. Interesting idea. The problem is that I want this to be a general solution, which means I don't know how big it will be or whether it'll be accessed simultaneously by different users. Jo-Erlend Schinstad