CouchDB
  1. CouchDB
  2. COUCHDB-881

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2, 1.1
    • Component/s: HTTP Interface
    • Labels:
      None
    • Environment:

      Linux, OSX, Erlang R13B

    • Skill Level:
      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").

        Activity

        Jan Lehnardt made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.0.2 [ 12315258 ]
        Fix Version/s 1.1 [ 12314933 ]
        Fix Version/s 1.0.1 [ 12315197 ]
        Resolution Fixed [ 1 ]
        Paul Joseph Davis made changes -
        Skill Level Regular Contributors Level (Easy to Medium)
        Jason Smith made changes -
        Jason Smith made changes -
        Field Original Value New Value
        Attachment 0001-Explicit-confirmation-of-query_parse_error-for-group.patch [ 12454048 ]
        Jason Smith created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Jason Smith
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development