[Talking-Rails] ActiveRecord::Calculations speed up Rails app by calculating aggregate values of columns in ActiveRecord models
ActiveRecord::Calculations speed up Rails app
In general scenarios, calculations that can be done at the database level are not recommended to be done at the Rails app level if there are no special requirements. Avoid unnecessary time, network and resource consumption
ActiveRecord::Calculations
provide methods for calculating aggregate values of columns in ActiveRecord
models.