Files
nairobi/app/models/poll
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-05-21 13:50:19 +02:00
2019-05-21 13:26:44 +02:00