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

View API POST keys to retrieve multiple docs by key could also allow for multiple 'range' queries, i.e. an array of { startkey: .., endkey: ... } params in the POST

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • HTTP Interface
    • None
    • Committers Level (Medium to Hard)

    Description

      It would be useful if I could do a single POST to a view to retrieve multiple ranges specified by startkey, endkey.

      The format could be as follows:

      { "ranges": [

      { "startkey": "a", "endkey": "c" }

      ,

      { "startkey":"g", "endkey":"z" }

      ] }

      Attachments

        1. couch_httpd_view.erl
          27 kB
          Jamie Talbot
        2. multi_start_end_key.diff
          2 kB
          Jamie Talbot
        3. ranged_key_post.diff
          0.8 kB
          Benjamin Anderson

        Issue Links

          Activity

            People

              chewbranca Russell Branca
              nrstott Nathan Stott
              Votes:
              19 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: