Files
openfoodnetwork/app/helpers
Matt-Yorkley 7d0ec48bcf Improve performance on summing adjustments and payment
:amount is a database field in these cases, as opposed to a method that returns a computed result. Calling `.sum(:amount)` is much more efficient here as it computes the sum at database level, as opposed to `.map(&:amount).sum`, which would fetch and instanciate all the objects first, and then sum the amounts after.
2021-01-13 16:16:49 +00:00
..
2021-01-06 13:20:31 +00:00
2020-06-22 16:51:46 +01:00
2019-11-10 18:42:43 +00:00
2020-10-30 10:12:56 +00:00
2014-06-06 14:04:45 +10:00
2020-08-20 17:16:20 +01:00
2020-06-19 08:59:43 +02:00