incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: Fulltext HTTP API
Date Fri, 04 Apr 2008 10:49:19 GMT

On Apr 4, 2008, at 12:41, Søren 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=<above>, count=1
>
> If you could restrict on revision for views, step 2 could be  
> eliminated,
> an step 3 would be:
>   get the view with startkey_revision=<above>

Sorry, from how I understand it, this against the design of views, so it
is not going to happen.

Cheers
Jan
--
Mime
View raw message