Change 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…
Change 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…