Files
grecia/app/models
Bertocq efacd0def3 Make calculate_winners explicitly delayed
Why:

* As seen on preproduction and production environments on Madrid's fork. Budget::Result#calculate_winners is very costly when done to all headings for a given budget (as requested on Admin::BudgetsController#calculate_winners) but its not when done individually for only a heading (as requested on Budget::Investment#recalculate_heading_winners)

How:

* Removing `handle_asynchronously :calculate_winners` from bellow Budget::Result#calculate_winners definition, to avoid making any call delayed. And explicitly calling `.delay` only when needed (on Admin::BudgetsController#calculate_winners)
2017-07-10 15:12:14 +02:00
..
2015-07-15 13:32:13 +02:00
2016-01-26 18:10:47 +01:00
2016-11-23 19:19:19 +01:00
2016-05-10 18:31:50 +02:00
2017-04-06 16:25:07 +02:00
2016-05-30 13:55:12 +02:00
2015-08-08 12:56:41 +02:00
2017-06-13 16:27:09 +02:00