couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michel Legnered <michel.legne...@gmail.com>
Subject Re: limits with lists
Date Mon, 10 Jan 2011 09:22:53 GMT
How about something like this:

    var row, limit = 10;
    while(row = getRow() && limit-- != 0) {
        send(row.value);
    }

Miche

On Sun, Jan 9, 2011 at 9:11 PM, Chris Johnson <csj790@yahoo.com> wrote:

> I have a large database which I have written a list that sorts based on
> value. I know when using the views, you can control the amount of data that
> is returned using limit (?limit=10). If I use this in my query, it limits
> the data that is handed to the list from the view. Is there a way to limit
> the data that is returned from the list?
>
> Thanks
> Chris
>



-- 
Code: github.com/antics
Words: blog.legnered.com
Wisdom: log.legnered.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message