couch.js Database.view() should default to {reduce: false}

Bug #1040301 reported by Jason Gerard DeRose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UserWebKit
Fix Released
High
Jason Gerard DeRose

Bug Description

This is an idea James Raymond suggested quite a while ago.

The CouchDB API assumes ?reduce=true for views that have a reduce function. The problem is that for code that only uses a view non-reduced (regardless whether there is a reduce function), this code breaks if you later add a reduce function.

The CouchDB API would have been better off defaulting to ?reduce=false, and so we're faking this behavior in our view() and view_sync() functions.

In 12.07 we changed this behavior in Microfiber, and it's proven quite useful. So now we're changing this in couch.js also.

Tags: couch.js

Related branches

description: updated
Changed in userwebkit:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.