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
[x] Complete the reimplementation of count_by_types without map_reduce
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
count_by_types
withoutmap_reduce