Faster aggregates function. This pushes almost all the performance issues into cubes.py
Faster aggregates function. This pushes almost all the performance issues into cubes.py

USStateDept/FPA_Core,spendb/spendb,pudo/spendb,CivicVision/datahub,nathanhilbert/FPA_Core,openspending/spendb,spendb/spendb,pudo/spendb,CivicVision/datahub,USStateDept/FPA_Core,johnjohndoe/spendb,CivicVision/datahub,USStateDept/FPA_Core,johnjohndoe/spendb,nathanhilbert/FPA_Core,spendb/spendb,nathanhilbert/FPA_Core,pudo/spendb,openspending/spendb,johnjohndoe/spendb,openspending/spendb