Erik Johnston d72667fcce Speed up get_current_state_ids
Using _simple_select_list is fairly expensive for functions that return
a lot of rows and/or get called a lot. (This is because it carefully
constructs a list of dicts).

get_current_state_ids gets called a lot on startup and e.g. when the IRC
bridge decided to send tonnes of joins/leaves (as it invalidates the
cache). We therefore replace it with a custon txn function that builds
up the final result dict without building up and intermediate
representation.
2017-04-07 10:10:49 +01:00
..
2017-03-29 09:50:05 +01:00
2017-03-17 15:06:07 +00:00
2017-04-05 14:15:09 +01:00
2017-04-07 10:10:49 +01:00
2017-04-03 15:38:02 +01:00
2017-03-30 16:37:40 +01:00
2017-01-17 14:32:53 +00:00
2016-08-08 16:40:39 +01:00
2017-03-30 17:50:31 +01:00