How Much Urgent Work Was Hidden Inside the Pump Documents?

Follow documents through filtering, array expansion and grouping. Keep track of what one row represents so the site total counts visits exactly once.

15 sections · 4 questions · 1 coding challenge

1 / 15

Document Applications Needed Reporting Operations Too

BOTIE

MongoDB’s August 2012 release announcement introduced its aggregation framework for reporting and analysis over stored documents. Applications needed more than retrieving one object: they needed to select records, reshape them and combine values into reports.

A pipeline expresses those changes as ordered stages. That makes our maintenance report readable as a sequence of record transformations. It also makes a mistake inspectable: after expanding an array, the rows represent visits, so repeating a pump-level quantity on each row can inflate a later sum.

Sources for this history