Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3292

option to not return key/value results on all_docs or view

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • HTTP Interface
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikeymckay Mike McKay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: