Erik Johnston 897d57bc58 Change state fetch query for postgres to be faster
It turns out that postgres doesn't like doing a list of OR's and is
about 1000x slower, so we just issue a query for each specific type
seperately.
2016-09-12 10:05:07 +01:00
..
2016-04-07 16:52:07 +01:00
2016-08-19 14:17:11 +01:00
2016-07-22 13:21:07 +01:00
2016-08-03 15:42:08 +01:00
2016-09-05 14:57:14 +01:00
2016-01-28 17:09:09 +00:00
2016-09-05 10:52:01 +01:00
2016-08-19 14:17:11 +01:00
2016-08-18 14:59:55 +01:00
2016-01-07 04:26:29 +00:00
2016-06-24 11:45:23 +01:00
2016-08-19 14:17:11 +01:00
2016-08-24 11:58:40 +01:00