incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <>
Subject Re: Calculating the sum of attachment sizes
Date Thu, 10 Jun 2010 15:41:41 GMT

On Jun 10, 2010, at 8:21 AM, Moritz Post wrote:

> Wrapping in single quotes doesn't help it here. Though. Is there anything
> else to consider when using a multi key fetch? Btw... i am still skeptical
> that i would need to introduce this "dummy" element to group by.

I'm kinda thinking you can't do this with the multi-key.

How many keys are you planning to POST? If it is less than a few hundred, than you should
be fine to do the sum on the client. If it is more than a few hundred, maybe you should consider
a directory structure, in which case you could use startkey and endkey and the reduce would
work properly.


> Greets
> Moritz
> On Thu, Jun 10, 2010 at 5:09 PM, Zachary Zolton <>wrote:
>>> I issue the following command:
>>> curl -d
>> '{"keys":[["leaflet","d947fce9711cb624e2df06e081004b1f"],["leaflet","d947fce9711cb624e2df06e081002c2b"]]}'
>>> -X POST
>> Make sure to wrap the URL in single quotes any time it contains query
>> params, the question mark and ampersand characters have special
>> meaning to most shells.

View raw message