Provides #calculate_all method on your Active Record models, scopes and relations. It's a little addition to Active Record's #count, #maximum, #minimum, #average and #sum. It allows to fetch all of the above and any other aggregate functions results in one request, with respect to grouping. Tested only with Postgres and MySQL only right now. It relies on automatic values type-casting of underlying driver.