From couchdb-user-return-851-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Sun Jul 20 19:28:00 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 97036 invoked from network); 20 Jul 2008 19:28:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2008 19:28:00 -0000 Received: (qmail 41777 invoked by uid 500); 20 Jul 2008 19:27:59 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 41744 invoked by uid 500); 20 Jul 2008 19:27:59 -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 41733 invoked by uid 99); 20 Jul 2008 19:27:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jul 2008 12:27:59 -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.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jul 2008 19:27:06 +0000 Received: by fg-out-1718.google.com with SMTP id l26so504537fgb.26 for ; Sun, 20 Jul 2008 12:27:30 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=i2GSj1pOijY2ud1SWZGkMLqq93dSKoI1g8hfJ7ome44=; b=WwmXZlWo9Z4Tygo3EB8Kk3ALiNKajl3vb2DhczuLgiWWAZ8ovaVgyLhlcpeQHPndS4 jMlBCTNFVfi5N6DeI/en0ISi3RbXySOIAi8pWDfhm1ZVn1LRS1cUfkK9EWk9pzC6feip OdWdMPHunGVIlHCUpR+ss67+5/DA6M4Ggiy+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=w018E73VZGV0zEwsJ8dNGaDxtCLkUTWV3yWqVOVCdoJn6h5BzxlUncqNXS2+5246UF 0FTJGgWZ7DvW7y3z6RWeec2SispRJiiFdxevDl1mP2idLNg2Fnfw8RnCulnuAUwrhM3G DIVOzYpLVF5DoaV3e+XchynAVwM7sZ8rD1qUs= Received: by 10.86.82.16 with SMTP id f16mr3822565fgb.16.1216582050423; Sun, 20 Jul 2008 12:27:30 -0700 (PDT) Received: by 10.86.23.1 with HTTP; Sun, 20 Jul 2008 12:27:30 -0700 (PDT) Message-ID: <6b6419750807201227j22d34275pe5afcaf96d8f2a5a@mail.gmail.com> Date: Sun, 20 Jul 2008 14:27:30 -0500 From: "Patrick Aljord" To: couchdb-user@incubator.apache.org Subject: Re: when to use another document and when not to? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6b6419750807141546q63431cfek69184295a1cb25b0@mail.gmail.com> <64a10fff0807141604i6f4c5778meba60a1f634f518b@mail.gmail.com> <4E5620A8-7ACD-4ADB-8FFD-424EEA289E21@apache.org> <6b6419750807141654x5b548706i1290367ca84acd27@mail.gmail.com> <66471514-BF70-4EFC-A258-CEC5C4799924@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jul 20, 2008 at 9:10 AM, Sho Fukamachi wrote: > > The outcome of the previous discussion on this thread seemed to be in favour > of the use of a "followers" table which I thought was a pretty bad idea in > CouchDB. I'd love to hear some defences of that, maybe someone can tell me > what I'm missing... > > Sho As Damien said, if the user follow many people, its document could get huge and updating it would be expensive cause in couchdb you cannot query or update one "row" only, you need to get and put the whole doc. So if a user following tons of people updates often that wouldn't scale very well.