Just use sum() for calculation.
Merge branch 'master' into regioncache
add cache control options in -Mbm