incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Groves" <adam.gro...@gmail.com>
Subject Re: Pagination with Reduce Views
Date Wed, 12 Nov 2008 13:05:10 GMT
Paul - thanks mate. That was the problem. I have an endkey which
obviously needs to refer to the start when descending = true. Finally
got my head around it!


2008/11/12 Paul Carey <paul.p.carey@gmail.com>:
>> I can't however get descending = true to retrieve any data on my view.
>> I get {"rows":[]} no matter which start key I use. Does descending
>> true only work on views that aren't reduced?
>
> Querying with descending=true effectively reverses the result order
> before your keys restrict the results.
>
> So, if there's a natural endkey for your query when you query with
> descending=false, set that to the startkey and now query with
> descending=true.
>
> Also see Querying Options on http://wiki.apache.org/couchdb/HTTP_view_API
>
> Paul
>

Mime
View raw message