couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Reducing to unique values...
Date Sat, 28 Feb 2009 04:53:26 GMT
On Fri, Feb 27, 2009 at 7:02 PM, Ben Browning <> wrote:
> On Fri, Feb 27, 2009 at 8:10 PM, Paul Davis <> wrote:
>> Only if the size of the uniques array is bounded in the size it grows.
>> Reduce output sizes must not grow faster than approximately log(# keys
>> reduced).
> Thanks for the clarification - that makes sense now.

An alternative would be emitting the field you'd like uniqued as the
key, and then querying a reduce with group=true.

However, unless you have a lot of values that share the same key, it
might be better to just use a map view and do the uniquing on the
client (or try one of the strategies discussed earlier in this

Chris Anderson

View raw message