[ 
https://issues.apache.org/jira/browse/COUCHDB-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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: https://issues.apache.org/jira/browse/COUCHDB-1526
>             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: http://www.atlassian.com/software/jira

Reply via email to