Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 62136 invoked from network); 4 Apr 2008 10:50:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 10:50:23 -0000 Received: (qmail 91831 invoked by uid 500); 4 Apr 2008 10:50:24 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 91792 invoked by uid 500); 4 Apr 2008 10:50:23 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 91783 invoked by uid 99); 4 Apr 2008 10:50:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 03:50: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 [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 10:49:41 +0000 Received: from [192.168.1.39] (e179073145.adsl.alicedsl.de [::ffff:85.179.73.145]) (AUTH: LOGIN jan, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Fri, 04 Apr 2008 10:49:51 +0000 Message-Id: <500893BC-A07B-435B-9D6B-F2CFE8762842@apache.org> From: Jan Lehnardt To: couchdb-dev@incubator.apache.org In-Reply-To: <60928.193.3.142.123.1207305708.squirrel@www.widetrail.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Fulltext HTTP API X-Priority: 3 (Normal) Date: Fri, 4 Apr 2008 12:49:19 +0200 References: <15779D61-04DC-4E17-B4F7-7DB311BF2752@apache.org> <55247.193.3.142.123.1207296647.squirrel@www.widetrail.dk> <510F433E-4823-4E22-893C-EAC3C711C580@apache.org> <60928.193.3.142.123.1207305708.squirrel@www.widetrail.dk> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Apr 4, 2008, at 12:41, S=F8ren Hilmer wrote: > >>> I guess I could save a lookup if a views query could be restricted >>> based >>> on document revision. >> >> Views always only contain the latest revision of a document. >> > > Yes, but if I could restrict on revision I did not have to lookup the > document id. > > Now I need to, > 1) Get the database, I now have the revision. > 2) Get the document with that revision, I now have document-id > 3) get the view with startkey_docid=3D, count=3D1 > > If you could restrict on revision for views, step 2 could be =20 > eliminated, > an step 3 would be: > get the view with startkey_revision=3D Sorry, from how I understand it, this against the design of views, so it is not going to happen. Cheers Jan --=