couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Uvarov <alexander.uva...@gmail.com>
Subject Re: Last 10 documents
Date Sat, 26 Feb 2011 17:59:19 GMT
Use ?skip=X where X = N - 10

N = count of documents (using reduce)

On Sat, Feb 26, 2011 at 10:55 PM, Tristan Sloughter
<tristan.sloughter@gmail.com> wrote:
> I was hoping with descending being true and limit=10 I could get the last 10
> documents in a view.
>
> It does not seem to work for me, is there a way to get the last X results in
> a view without knowing the keys?
>
> Thanks,
> Tristan
>

Mime
View raw message