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 <[email protected]> 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