Hi Samuel!

There is issue with patch about it:
https://issues.apache.org/jira/browse/COUCHDB-1202

And there is the explanation why so:

> One other issue: currently I haven't yet implemented commonjs for
> reduce functions. The reason I have not is that reduce functions are
> not batched, so library code would have to be sent and eval'd every
> single time the reduce function is run. On top of this, 99% of the
> time the reduce function won't make use of the library code, so it
> will just be dead weight. (I have a hard time thinking of when a
> reduce function will need to require library code).

http://mail-archives.apache.org/mod_mbox/couchdb-dev/201009.mbox/%3CAANLkTi=hfvb8__ssfqtfzykv3e-h0odcduqazmtve...@mail.gmail.com%3E

Hope they make things clear (:

--
,,,^..^,,,


On Thu, Apr 4, 2013 at 5:44 AM, Samuel Williams
<space.ship.travel...@gmail.com> wrote:
> Hi,
>
> I've implemented a Ruby query server.
>
> I wanted to have libraries available to reduce functions.
>
> Is it okay to have add_lib add libraries to both mapper context and reduce
> context?
>
> The method of loading libraries seems a bit cumbersome in the current
> implementation, reducers are treated quite differently from mappers. Is
> there any plan to improve this going forward?
>
> Kind regards,
> Samuel

Reply via email to