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 E545797F3 for ; Sun, 15 Apr 2012 00:49:13 +0000 (UTC) Received: (qmail 66909 invoked by uid 500); 15 Apr 2012 00:49:12 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 66868 invoked by uid 500); 15 Apr 2012 00:49:12 -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 66860 invoked by uid 99); 15 Apr 2012 00:49:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2012 00:49:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2012 00:49:02 +0000 Received: by vbzb23 with SMTP id b23so3992378vbz.11 for ; Sat, 14 Apr 2012 17:48:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=h4j4Dhj5MxyJ6LIXwjwmtAWzTfOWLmyI4YQk0o7beBg=; b=Vrs5s0/CjVJ5u++Bp/eW64qSjOhyERG3qHJ/H9Czaf8pM2DHViJ79oBY21VnEtKTQD D4lt+PKZMKqLTM+gULP28EyGxqoPi6FW9CjY+2nF36NwRbmQB7andswCfuUaQHOGMZmq ea78m/wjq9vZNO33ppu6VDtE1p5gjobG2WFOYKBzNE2yWlA5Lea6nHotKLRSLi4G5XWV q7ExU4DFXeoZkBfD1V7v18wrbqmqFzYVD3rDBjbtN2RJVU4ifL5torARwxFqe4VBYs5C P1Bg8598rZa1yfgtSoiFK3616gsQLIEZmk60JydDZbWgZgoNlAtDhrlu1nmf1lwtV5ya HqOg== Received: by 10.220.140.18 with SMTP id g18mr3424672vcu.37.1334450921807; Sat, 14 Apr 2012 17:48:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.99.74 with HTTP; Sat, 14 Apr 2012 17:48:21 -0700 (PDT) X-Originating-IP: [68.5.117.177] In-Reply-To: References: From: Mark Hahn Date: Sat, 14 Apr 2012 17:48:21 -0700 Message-ID: Subject: Re: Reduce just N rows? To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7b342e722a20be04bdad1136 X-Gm-Message-State: ALoCoQlHaFTpX+ob7XBcHAPG+YYdgVnGMWlh3Tu/bGP2XsflftDvhirTZqXLpf8UXJQWBSYLaG+7 --047d7b342e722a20be04bdad1136 Content-Type: text/plain; charset=ISO-8859-1 IMHO, It isn't too much trouble to get just the list of all doc ids and the do a batch query for the first 10. Couch has a lot of places where multiple queries are required. I think if you start to add sql features like LIMIT then you are starting down a slippery slope towards couch losing it's simplicity. --047d7b342e722a20be04bdad1136--