You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "rohit12sh ." <ro...@gmail.com> on 2014/02/19 16:11:37 UTC

disable reduce_limit

I am creating a view with Reduce function returning grouped Map results in
JSON object. Clearly, I am exceeding the expected return (non-scalar) value
by Reduce function. And getting "reduce_overflow_error". I have to set the
reduce_limit to FALSE in order to avoid the error and make my view work.

When I was making the change in 'default.ini' I read a comment there that
"If you think you're hitting reduce_limit with a "good" reduce function,
please let us know on the mailing list so we can fine tune the heuristic"

Please advise what needs to be done here.

-- 
Regards,
Rohit Sharma

Re: disable reduce_limit

Posted by Paul Davis <pa...@gmail.com>.
That's mean for if you're accumulating numbers and hitting the reduce
limit. Coalescing map results into an object is pretty standard bad
behavior. We allow you to disable the warnings but its not what we'd
call a good reduce function.

On Wed, Feb 19, 2014 at 9:11 AM, rohit12sh . <ro...@gmail.com> wrote:
> I am creating a view with Reduce function returning grouped Map results in
> JSON object. Clearly, I am exceeding the expected return (non-scalar) value
> by Reduce function. And getting "reduce_overflow_error". I have to set the
> reduce_limit to FALSE in order to avoid the error and make my view work.
>
> When I was making the change in 'default.ini' I read a comment there that
> "If you think you're hitting reduce_limit with a "good" reduce function,
> please let us know on the mailing list so we can fine tune the heuristic"
>
> Please advise what needs to be done here.
>
> --
> Regards,
> Rohit Sharma