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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: HTTP Interface
    • Labels:
      None
    • Skill Level:
      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. ranged_key_post.diff
          0.8 kB
          Benjamin Anderson
        2. multi_start_end_key.diff
          2 kB
          Jamie Talbot
        3. couch_httpd_view.erl
          27 kB
          Jamie Talbot

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: