You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by carlosduclos <gi...@git.apache.org> on 2017/03/17 13:54:52 UTC

[GitHub] couchdb-nano issue #24: Allow forcing GET on VIEW commands (even with keys)

GitHub user carlosduclos opened an issue:

    https://github.com/apache/couchdb-nano/issues/24

    Allow forcing GET on VIEW commands (even with keys)

    [Original issue](https://github.com/dscape/nano/issues/321)
    
    __libHive__
    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 -
    ```javascript
      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

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---