couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <>
Subject [jira] [Updated] (COUCHDB-1526) Include average in a built-in reduce (_stats)
Date Tue, 02 Jul 2013 00:27:20 GMT


Alexander Shorin updated COUCHDB-1526:

    Component/s:     (was: Database Core)
                 View Server Support
> Include average in a built-in reduce (_stats)
> ---------------------------------------------
>                 Key: COUCHDB-1526
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: View Server Support
>    Affects Versions: 1.2
>            Reporter: Eli Stevens
>            Priority: Minor
> _stats does not provide the average value, which would be very nice to have for investigative
use (ie. trying things in futon to understand the nature of a large dataset).  I think it
would be useful to add it (doubly so if it could be the first key shown in futon, the way
sum is now ;).
> Cumulative rounding errors can be avoided by recomputing sum/count at every level, rather
than using the previous avg value.
> Adding a new built-in reduce that behaves like the current _stats but with the additional
avg key would also solve this use case (ie. _stats_avg or similar).  I would only see this
being useful if it were important to preserve the exact behavior of _stats.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message