From dev-return-4283-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Wed May 20 08:40:07 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 4300 invoked from network); 20 May 2009 08:40:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 May 2009 08:40:06 -0000 Received: (qmail 36266 invoked by uid 500); 20 May 2009 08:40:19 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 36192 invoked by uid 500); 20 May 2009 08:40:19 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 36142 invoked by uid 99); 20 May 2009 08:40:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 08:40:16 +0000 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 paul.p.carey@gmail.com designates 209.85.218.170 as permitted sender) Received: from [209.85.218.170] (HELO mail-bw0-f170.google.com) (209.85.218.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 08:40:08 +0000 Received: by bwz18 with SMTP id 18so321371bwz.11 for ; Wed, 20 May 2009 01:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=TFsYvSRrTa2ekKCuyWfkQq/zLr9JSSiMGIl9PaoEz5I=; b=WfuybtA8B5C65ki5e5lWcWOhxskhRKMwGcYnCzu6r0YjMJaWkaZ7GJwpIjB1Y6ocsS Q2ErfLs4pkDLwlTyETsawyeJnUmRi/Pg6vBe9AFAcQr/d0BmK7jflh9oTFUkSFnCK3P+ x0zYVDTo5g0tH7W/uD0BlXCsaC6KQCkthXeaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ABKjYaL8MhBuyk8eAwWqX7+fIt1vUVA9Geq/qSVV1CTjYPykSJwl5TB2SHiJzwDaR3 tzEC6dfTPaIMUc0C6MKf9dm3IVkmAewxRH+GjJ8aBI8HR2bKlD8cvFPS3fpqdEjzp9OM GJ5BQcIBFWUFQ1ulqW/ykNDXaaGZ9GME2lbmQ= MIME-Version: 1.0 Received: by 10.204.31.196 with SMTP id z4mr1001454bkc.92.1242808787046; Wed, 20 May 2009 01:39:47 -0700 (PDT) Date: Wed, 20 May 2009 09:39:47 +0100 Message-ID: <13ae4dd50905200139g5f89cf9ldf30e11f546bcd8d@mail.gmail.com> Subject: startkey exclusive for _all_docs_by_seq From: Paul Carey To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi I just noticed that startkey is exclusive when applied against _all_docs_by_seq but inclusive for all other queries. Is this intentional? Thanks Paul ==== 09:25 : ~ $ curl -X PUT localhost:5984/sk_test {"ok":true} 09:28 : ~ $ curl -X PUT -d '{"_id":"1"}' localhost:5984/sk_test/1 {"ok":true,"id":"1","rev":"1-1347026183"} 09:28 : ~ $ curl -X GET localhost:5984/sk_test {"db_name":"sk_test","doc_count":1,"doc_del_count":0,"update_seq":1,"purge_seq":0,"compact_running":false,"disk_size":14271,"instance_start_time":"1242808117550098"} 09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs_by_seq?startkey=0' {"total_rows":1,"offset":0,"rows":[ {"id":"1","key":1,"value":{"rev":"1-1347026183"}} ]} 09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs_by_seq?startkey=1' {"total_rows":1,"rows":[]} 09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs?startkey="1"' {"total_rows":1,"offset":0,"rows":[ {"id":"1","key":"1","value":{"rev":"1-1347026183"}} ]}