Okay, it is also just one call.
--Søren
--
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
On Fri, April 4, 2008 12:49, Jan Lehnardt wrote:
>
> 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
> --
|