Aggregation is slow

How to sum total 12 million record amonut faster?