incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 7zark7 <>
Subject Re: Map/reduce returning an array?
Date Fri, 11 Jun 2010 02:11:38 GMT

I had assumed that since the array size was guaranteed to never be 
larger than the map result, it was kosher in this case.

I'll try using a list instead, thanks.

On 6/10/10 6:02 PM, Randall Leeds wrote:
> On Thu, Jun 10, 2010 at 17:37, 7zark7<>  wrote:
>> However, I'm unsure what to use for a reduce function.
> I do not think you want a reduce function
>> "Reduce output must shrink more rapidly:"
> Reduce is supposed to reduce. Growing an array inside your reduce is a
> good way to break things at scale. You can set reduce_limit=false in
> the couchdb section of your local.ini, but I would not recommend this
> "solution". You already have your array, it's just got more
> information than you want.
> If you insist on returning an array of *just* the ids in your rows use
> a list function.
> -Randall

View raw message