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.

Chris


> Greets
> Moritz
> 
> On Thu, Jun 10, 2010 at 5:09 PM, Zachary Zolton 
> <[email protected]>wrote:
> 
>>> I issue the following command:
>>> 
>>> curl -d
>>> 
>> '{"keys":[["leaflet","d947fce9711cb624e2df06e081004b1f"],["leaflet","d947fce9711cb624e2df06e081002c2b"]]}'
>>> -X POST
>>> 
>> http://192.168.87.1:5984/mydb/_design/mydb/_view/getAttachmentSize?group=true&group_level=1
>> 
>> 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.
>> 

Reply via email to