rinens·12 anni fa·discussChange your data model so that you don't need to aggregate. Duplicate if necessary, handle the resulting potential inconsistency.Have the right indexes; especially with complex aggregation you might be surprised to find they aren't being used due to a quirk of your query.A single mongo instance can handle a beefy load, but not if every read is an aggregation over a million by million by who knows how many docs.
Have the right indexes; especially with complex aggregation you might be surprised to find they aren't being used due to a quirk of your query.
A single mongo instance can handle a beefy load, but not if every read is an aggregation over a million by million by who knows how many docs.