couchbaselabs/TouchDB-iOS — Issue #8: Implement "reduce" functions
Author: snej
Created: 2011-12-19 06:45:03+00:00
State: open
Labels: compatibility, feature

Views currently have map functions but no reduce. Reduce is less commonly used but very important for things like aggregation. Unfortunately it's not going to be as efficient as in CouchDB, where the intermediate reduce results are stored inside the B-tree nodes. Damien suspects it may have to be done entirely at query time.