On Fri, Feb 27, 2009 at 7:02 PM, Ben Browning <[email protected]> wrote: > On Fri, Feb 27, 2009 at 8:10 PM, Paul Davis <[email protected]> > 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 thread.) -- Chris Anderson http://jchris.mfdz.com
