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

Support reduce=false for map-only views since it is just a no-op

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2, 1.1
    • HTTP Interface
    • None
    • Linux, OSX, Erlang R13B

    • Regular Contributors Level (Easy to Medium)

    Description

      Currently, a view with no reduce function defined disallows having a `reduce` parameter in the HTTP query.

      It would slightly simplify client code to always query views with reduce=false except when a reduction is actually desired. That way, views which have useful map-only and map-reduce output can be queried with the same reduce=false parameter. Currently, if one wants only the map results, one must know whether that view is map-only (reduce parameter should be omitted) or map-reduce (reduce parameter should be set to "false").

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhs Jason Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: