From user-return-3436-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Feb 10 01:45:36 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 53002 invoked from network); 10 Feb 2009 01:45:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 01:45:36 -0000 Received: (qmail 21527 invoked by uid 500); 10 Feb 2009 01:45:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21498 invoked by uid 500); 10 Feb 2009 01:45:33 -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 21487 invoked by uid 99); 10 Feb 2009 01:45:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 17:45:33 -0800 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 209.85.221.21 as permitted sender) Received: from [209.85.221.21] (HELO mail-qy0-f21.google.com) (209.85.221.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 01:45:26 +0000 Received: by qyk14 with SMTP id 14so3176266qyk.11 for ; Mon, 09 Feb 2009 17:45:05 -0800 (PST) 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 :content-transfer-encoding; bh=RhaI7CUOBTaaxYUdwGOcHS8HElfhcX5VHDDo23A8qf8=; b=SNd2mXKLNIoWct841CMEHph2BkKQ/x9oD1Ay53fyCbuyvSzNHr0P5mOSWOucjHP3RK bWNfxx386waV+HY22/8O/Xp649EM6Bu3O5UfIy3zZFQta4N7nTZZ8rOCBOmKwyq/Hcth u0mzCLN2TjVBFA+4a1BPJr822kt/XiA1tXssg= 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:content-transfer-encoding; b=ily7icxxjrUQk9Hhp3qORGpOlLmNBo+2bbw6qZ4xYaiIATo12WgFUjbEBCpxIgEqKr hC2gH14+0l9wJ6vDrm7L/ASIMC5KowFwtjuBwDQCYZqChARTHtlgIL1bpC1flPJ/3OK0 UV1OF7jVFYsz/IKQnKA3+J32lGl0rZl2UIwzI= MIME-Version: 1.0 Received: by 10.229.85.1 with SMTP id m1mr1179449qcl.56.1234230305939; Mon, 09 Feb 2009 17:45:05 -0800 (PST) In-Reply-To: <5186956f0902090228p5a6db266l764fde4c82b571d0@mail.gmail.com> References: <5186956f0902082052m43546a8dmb6d9a3ebf9685034@mail.gmail.com> <5186956f0902090228p5a6db266l764fde4c82b571d0@mail.gmail.com> Date: Mon, 9 Feb 2009 20:45:05 -0500 Message-ID: <6b6419750902091745w3146a8cyd70cd796fa212762@mail.gmail.com> Subject: Re: The Blog From: Patrick Aljord To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Feb 9, 2009 at 5:28 AM, Mister Donut wrote: > I don't think you understand my point. > Yes, I know. Maybe you should re-read. > You still need one lookup for every blog entry on a page. No, you can do so with only one query using Map/Reduce. >> startkey, endkey and limit. > > That sounds so great. But wait. LIMIT. > I know that from SQL. It doesn't scale. That's what caching is for. > Jumping to page 1234567 of ten million. Please, no. > What's the point of that? Unless you expect your number of comments to never grow, in which case caching will do. > And you cannot, ever, group items based on a variable criteria. You can do that with Map/Reduce. > I challenge you. Build me a counter! Create a view that gets all the comments and get them with limit=0, there's your counter.