We are considering moving an SQL table to a MongoDB document, and
replace a sum over a column in SQL with an Elastic Search statistical
facet sum over the equivalent document field. Please let us know if
this is not a good idea or if there is a better query.