Robin Ward 71460fc203 PERF: Use mini_sql for the query
On sites with many flages, it could take quite a long time for
ActiveRecord to return all the joined data.

It's now 3 queries instead of one, but significantly faster, especially
if you have a minimum threshold set.
2018-11-05 14:44:27 -05:00
..
2018-11-05 14:16:03 +02:00
2017-07-28 10:20:09 +09:00
2018-09-21 11:02:23 +00:00
2018-06-07 13:28:18 +08:00
2018-10-22 15:09:25 +05:30
2017-07-28 10:20:09 +09:00
2018-06-07 13:28:18 +08:00
2018-11-05 14:44:27 -05:00
2017-07-28 10:20:09 +09:00
2016-07-15 11:36:06 +08:00
2018-02-26 10:25:58 +11:00
2018-04-25 08:44:07 +10:00
2018-06-07 13:28:18 +08:00
2017-07-03 15:26:57 -04:00
2018-10-23 12:10:33 +11:00
2018-04-18 11:32:32 +05:30
2018-06-07 13:28:18 +08:00
2017-07-28 10:20:09 +09:00
2018-08-10 11:34:01 +10:00
2018-11-05 11:16:58 +00:00
2017-07-28 10:20:09 +09:00