incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: How to pass parameters to views?
Date Mon, 06 Dec 2010 22:06:34 GMT
On Mon, Dec 6, 2010 at 13:07, Wordit Ltd <wordituk@googlemail.com> wrote:
> On Mon, Dec 6, 2010 at 8:23 PM, Randall Leeds <randall.leeds@gmail.com> wrote:
>>
>> Oh, yeah. So, to answer your other question. Use a _list function.
>
> Thanks, I had not looked at lists yet. I placed all data in one array
> inside one document, rather than using separate docs for each item.
>
> Is there any performance difference to using a view on say 500 docs,
> or using a list function on a single doc containing the same 500 items
> in an array?
>

Not sure I have enough information to say. Depends on what processing
your list function does.
Remember that the input to a _list is actually a view, so do any
deterministic pre-processing in the view and filter in the _list.

> Thanks,
>
> Marcus
>

Mime
View raw message