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-08-30 17:20:31 +01:00
2016-08-24 11:58:40 +01:00
2016-09-05 10:41:27 +01:00
2016-09-09 17:36:56 +01:00
2016-08-22 10:49:31 +01:00
2016-08-08 11:12:21 +01:00
2016-09-09 14:56:50 +01:00
2016-09-09 11:07:39 +01:00
2016-08-08 11:12:21 +01:00
2016-09-06 18:16:20 +01:00
2016-08-08 16:40:39 +01:00