Files
nairobi/app/models
Javi Martín e2a3398ec0 Increase poll stats performance
Using SQL's `select` instead of converting the records to a ruby array
increases performance dramatically when there are thousands of records.
For a poll with 200000 voters, calculating stats took more than 7
minutes, and now it takes less than 2 minutes.
2019-05-21 13:50:19 +02:00
..
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2019-05-21 13:50:19 +02:00
2019-03-14 17:25:43 +01:00
2015-07-15 13:32:13 +02:00
2019-05-21 13:50:19 +02:00
2017-11-17 13:14:03 -04:00
2019-03-27 15:22:14 +01:00
2019-04-17 17:40:56 +02:00
2019-04-17 17:40:56 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2019-04-17 17:40:56 +02:00
2019-05-21 13:50:19 +02:00
2019-03-14 17:25:43 +01:00
2019-02-05 17:41:00 +01:00
2019-05-21 13:50:17 +02:00
2017-12-15 19:21:02 +01:00