Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 38719 invoked from network); 14 Jul 2008 22:47:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 22:47:26 -0000 Received: (qmail 83609 invoked by uid 500); 14 Jul 2008 22:47:25 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 83585 invoked by uid 500); 14 Jul 2008 22:47:25 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 83574 invoked by uid 99); 14 Jul 2008 22:47:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 15:47:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of patcito@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 22:46:33 +0000 Received: by fg-out-1718.google.com with SMTP id l26so2516911fgb.26 for ; Mon, 14 Jul 2008 15:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=i99xauyWgWlpFUchfjWtZhabnRBq7IttY9RTOnKXq+0=; b=TbnNsPzKOl4KYLlq8IYkL3hnquuglhVnMcl4i0alSG7fSA5HqWBoXSIWMZDPV0MfKx SCSTKIwbH4J3E56+HGyYgz7/JTR3divxzhDpTvrlDvlcWHyhWoysVCR5yD7TdLjIj0Za b2LqRdgUetKDNJABhNEuo5S9wKMZCjLlRX1L0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=aTMslciJD1D6tO7+uf6aD6uJL04r+sEyMPr2VfiQVOAlaGgrymES7O9aCYnPMoK1C2 DYgWOcJwFX0jFQ0g8s2CG5i+ShT7a8JFXtC/LQO4vF5awuXpE3sjmqB2xTBNAHH9ouqF 3jPAaWF3NuRr0qfkqIvjkDR5DLSeN8dYbI1vo= Received: by 10.86.49.13 with SMTP id w13mr918154fgw.15.1216075616254; Mon, 14 Jul 2008 15:46:56 -0700 (PDT) Received: by 10.86.23.1 with HTTP; Mon, 14 Jul 2008 15:46:56 -0700 (PDT) Message-ID: <6b6419750807141546q63431cfek69184295a1cb25b0@mail.gmail.com> Date: Mon, 14 Jul 2008 17:46:56 -0500 From: "Patrick Aljord" To: couchdb-user@incubator.apache.org Subject: when to use another document and when not to? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hey all, I'm playing with couchdb and I'm wondering when should I just use another field in the doc or another doc. Say, I have users, each user can follow many users. Should I put all the followed users in a field of each user doc (as an array) or should I create a Follower doc with the id of the followed user and the id of the follower user. What's the general "rule" if there is one to know when it's best to use a separate doc and when not to? Thanks in advance Pat