couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosduclos <...@git.apache.org>
Subject [GitHub] couchdb-nano issue #24: Allow forcing GET on VIEW commands (even with keys)
Date Fri, 17 Mar 2017 13:54:52 GMT
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.
---

Mime
View raw message