Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 97537 invoked from network); 10 Apr 2008 06:15:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 06:15:22 -0000 Received: (qmail 73273 invoked by uid 500); 10 Apr 2008 06:15:23 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 73120 invoked by uid 500); 10 Apr 2008 06:15:23 -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 73109 invoked by uid 99); 10 Apr 2008 06:15:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 23:15:23 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.41.46.236] (HELO pfepb.post.tele.dk) (195.41.46.236) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 06:14:37 +0000 Received: from pascal.widetrail.dk (0x503ed345.arcnxx11.adsl-dhcp.tele.dk [80.62.211.69]) by pfepb.post.tele.dk (Postfix) with ESMTP id 107FEF84029 for ; Thu, 10 Apr 2008 08:14:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by pascal.widetrail.dk (Postfix) with ESMTP id 5509A37755 for ; Thu, 10 Apr 2008 08:20:36 +0200 (CEST) Received: from pascal.widetrail.dk ([127.0.0.1]) by localhost (pascal.widetrail.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03389-01 for ; Thu, 10 Apr 2008 08:20:27 +0200 (CEST) Received: from www.widetrail.dk (localhost [127.0.0.1]) by pascal.widetrail.dk (Postfix) with ESMTP id 91147376EA for ; Thu, 10 Apr 2008 08:20:27 +0200 (CEST) Received: from 193.3.142.123 (SquirrelMail authenticated user sh) by www.widetrail.dk with HTTP; Thu, 10 Apr 2008 08:20:27 +0200 (CEST) Message-ID: <51868.193.3.142.123.1207808427.squirrel@www.widetrail.dk> In-Reply-To: <9C3977AC-3865-4DD4-9B45-F6F5A4402072@gmx.de> References: <200804092350.23492.sh@widetrail.dk> <9C3977AC-3865-4DD4-9B45-F6F5A4402072@gmx.de> Date: Thu, 10 Apr 2008 08:20:27 +0200 (CEST) Subject: Re: Clarifications or bugs From: =?iso-8859-1?Q?S=F8ren_Hilmer?= To: couchdb-user@incubator.apache.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at widetrail.dk X-Virus-Checked: Checked by ClamAV on apache.org >> 2. startkey_docid does not seam to work, the first document in the >> view is >> always returned. > > startkey_docid needs to be combined with startkey to work correctly. I > don't think it's even applied when there's no startkey. Ahh, this is very unfortunate, say you know the document_id of a changed document, but not necessary the view-key, then you have no way of getting what the view will return for that specific document. This is the situation for the indexer, CouchDB will notify it with which DB has changed, the indexer knows the previous update-sequence and gets all documents newer, but it need to index the views specified for indexing, and thus run the view for the changed documents only, but as it has not got the view-key in this situation, it is out of luck. The wiki for HttpViewApi says "For efficient paging use startkey and/or startkey_docid." Are you sure this does not classify as a Bug? Is there something I am missing. Have fun S�ren > > Cheers, > -- > Christopher Lenz > cmlenz at gmx.de > http://www.cmlenz.net/ > > -- S�ren Hilmer, M.Sc., M.Crypt. wideTrail Phone: +45 25481225 Pilev�nget 41 Email: sh@widetrail.dk DK-8961 Alling�bro Web: www.widetrail.dk