Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 771 invoked from network); 25 Nov 2008 18:07:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 18:07:11 -0000 Received: (qmail 54734 invoked by uid 500); 25 Nov 2008 18:07:19 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 54700 invoked by uid 500); 25 Nov 2008 18:07:19 -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 54689 invoked by uid 99); 25 Nov 2008 18:07:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 10:07:19 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of psortino@gmail.com designates 209.85.217.15 as permitted sender) Received: from [209.85.217.15] (HELO mail-gx0-f15.google.com) (209.85.217.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 18:05:51 +0000 Received: by gxk8 with SMTP id 8so13493gxk.12 for ; Tue, 25 Nov 2008 10:05:37 -0800 (PST) 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:references; bh=TCgkkmbbX/+gQEnFQS9rG8te701DPKw2TArwOwI98V0=; b=mM0LeEOv8jdajfJTtxY0xsCFH8ULrs8BsqFYMnwWxHCz5H0EsQAZvEAH8ozEZGaNe1 PJGa9ZzKOe6uVu7BSbxdYTnXYOiC/K/9Rl3m/8sjCvDlaVycjzuM0Bt2nBTChipHEhOv intR8741ouLyUHl4Ejt001B7ciRsrXcOagzuQ= 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:references; b=A0vII8eS3663bESj2WsE9IcHPAV4o+Uz4dmGZA9CWGc7237Z6S5PDIjn78GzF38y3y jaVCmauUDRxNsazSNdS0Cr3w0uwIjTyi4QeFXzx0qVFfh0PUjKij7MgqFolIqzWvyxHQ GM390HCoW8b5u14pBi2T7EP1K9xyn6maDT2+k= Received: by 10.142.207.8 with SMTP id e8mr2221615wfg.198.1227636258186; Tue, 25 Nov 2008 10:04:18 -0800 (PST) Received: by 10.143.7.6 with HTTP; Tue, 25 Nov 2008 10:04:18 -0800 (PST) Message-ID: Date: Tue, 25 Nov 2008 15:04:18 -0300 From: "Pablo Sortino" To: couchdb-user@incubator.apache.org Subject: Re: Is CouchDB allowing the use of "startkey_docid" parameter in views? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11683_26078429.1227636258179" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11683_26078429.1227636258179 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks a lot. If someone has the same issue I fixed the url by adding "startkey". http://localhost:5984/psortino/_view/foo/username?startkey= "nsantos"&startkey_docid=048cdb8d0971e625e86730ffc10eda0d BTW: Good explanation. Pablo. On Tue, Nov 25, 2008 at 2:37 PM, Chris Anderson wrote: > On Tue, Nov 25, 2008 at 5:58 AM, Pablo Sortino wrote: > > A view with startkey_docid is not working. > > startkey_docid is only meant as a method to make finer distinctions > than startkey alone can make. That is, it should have no effect unless > you have rows in your view with the same key, and have specified a > startkey. > > When you have, say, many many docs all with the same date, so that > startkey and endkey alone would not be sufficient to give a small > range of them, the startkey_docid and endkey_docid can be used to > specify a sub range of rows which all have the same key. > > The view storage engine stores the rows under the meta-key: {key, > docid} so queries usually just ignore the docid, but when a startkey > as well as a startkey_docid are both specified, then the comparison > includes the docid part of the meta-key as well. > > ...maybe not my clearest explanation ever, but I hope it helps. > > > -- > Chris Anderson > http://jchris.mfdz.com > ------=_Part_11683_26078429.1227636258179--