Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Allow forcing GET on VIEW commands (even with keys) #321

Open
libHive opened this issue Apr 6, 2016 · 1 comment
Open

Allow forcing GET on VIEW commands (even with keys) #321

libHive opened this issue Apr 6, 2016 · 1 comment

Comments

@libHive
Copy link

libHive commented Apr 6, 2016

This issue rose when working against Cloudant. Their pricing is 5 times cheaper for GET requests than POST requests. I had a lot of requests for small sets of keys, nothing that couldn't go into a query string, and I had made this change in order to keep my bills down.

The actual change was rather small - just adding an optional parameter to the request -

  let exampleQuery = { 
            reduce : true, 
            group : true, 
            keys : [ [a,b], [c,d] ], 
            forceGet: true // this is the parameter I added
        }; 

Do you think this is something that should go into the main branch ?
Thanks

@carlosduclos
Copy link

This repository has been merged into apache/couchdb-nano, please continue the discussion here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants