Use SQL `SUM`s where possible
Use SQL `SUM`s where possible

Replaced `pluck(---).compact.sum` calls (Array#sum) by `sum(---)` calls (ARecord#sum / SQL's `SUM`)
ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre