When these aggregations are applied through the Enterprise Data Connector in a Rulesheet set to
Extend to Database, the performance impact against large tables can be minimized by performing non-conditional actions that force the calculations onto the database. For an example of this, see
Optimizing Aggregations that Extend to Database