You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Mike McKay (JIRA)" <ji...@apache.org> on 2017/02/06 14:05:41 UTC

[jira] [Created] (COUCHDB-3292) option to not return key/value results on all_docs or view

Mike McKay created COUCHDB-3292:
-----------------------------------

             Summary: option to not return key/value results on all_docs or view
                 Key: COUCHDB-3292
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3292
             Project: CouchDB
          Issue Type: New Feature
          Components: HTTP Interface
            Reporter: Mike McKay


In order to keep the amount of data transferred to a minimum I would like an option to remove key/value results when doing an all_docs or view query. For instance, if I want to create a link to each document found by a query, and I use all_docs to list them, I get a lot of redundant data:

{"total_rows":1319,"offset":119,"rows":[
{"id":"image_TUSOMETEACHER_2017-01-01_BARINGO_AKORET","key":"image_TUSOMETEACHER_2017-01-01_BARINGO_AKORET","value":{"rev":"11-b5baef58a2594dc9b2773efcbc49ed98"}}
....

For an all_docs query, the id and key will always be the same. Also, I don't need the value (rev information) at all. It would be nice to be able to remove this from the results, and thereby significantly reduce the amount of data sent back.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)