couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: limits with lists
Date Mon, 10 Jan 2011 09:37:56 GMT
surely you can pass ?limit= through the list function to the view
call? list is 'just' for transforming the output of a view call to
another form.

B.

On Mon, Jan 10, 2011 at 9:22 AM, Michel Legnered
<michel.legnered@gmail.com> wrote:
> 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
View raw message