You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Tyler Gillies <ty...@pdxbrain.com> on 2010/09/18 07:32:46 UTC

req argument in view

Why don't views have a req argument?

-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: req argument in view

Posted by Tyler Gillies <tj...@gmail.com>.
Patrick Barnes <mr...@...> writes:

> 
> Can you be more specific? What do you mean by a 'req argument'?

I posted the answer to my question here already





Re: req argument in view

Posted by Patrick Barnes <mr...@gmail.com>.
Can you be more specific? What do you mean by a 'req argument'?

 From a view you can fetch all values with a single key, a number of 
keys, or a contiguous range of keys specified by startkey/endkey.


On 18/09/2010 3:41 PM, Tyler Gillies wrote:
> On Fri, Sep 17, 2010 at 10:32 PM, Tyler Gillies<ty...@pdxbrain.com>  wrote:
>
>> Why don't views have a req argument?
>>
>
> [10PM:33:19]<apage43>  map/reduce functions have to be pure
> [10PM:34:32]<apage43>  views are precomputed and stored so they cant change
> based on request data

Re: req argument in view

Posted by Tyler Gillies <ty...@pdxbrain.com>.
On Fri, Sep 17, 2010 at 10:32 PM, Tyler Gillies <ty...@pdxbrain.com> wrote:

> Why don't views have a req argument?
>

[10PM:33:19] <apage43> map/reduce functions have to be pure
[10PM:34:32] <apage43> views are precomputed and stored so they cant change
based on request data
-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: req argument in view

Posted by Aurélien Bénel <au...@utt.fr>.
Hi Tyler,

> Why don't views have a req argument?

Map and reduce functions have no client-generated arguments in order to improve cache management. That's indeed what is exciting.

But as Patrick said, when you GET a view you can send a key or a range of keys as a parameter.


Regards,

Aurélien