rubyforgood / Flaredown

Flaredown web app and API
http://www.flaredown.com
GNU General Public License v3.0
39 stars 15 forks source link

Replace map-reduce with aggregation #539

Closed codemonium closed 3 years ago

codemonium commented 3 years ago

The free tier and some other tiers of MongoDBaaS do not support map-reduce. In fact, according to https://docs.mongodb.com/manual/aggregation/#map-reduce, map-reduce should be replaced with the aggregation pipeline. This changeset does this for the last usage of map-reduce.

TODO