diff options
author | Erik Johnston <erik@matrix.org> | 2017-04-07 10:10:49 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-04-07 10:10:49 +0100 |
commit | d72667fcce6f751c55ea510c964d68499cb67305 (patch) | |
tree | d70d49f6db150d19043d3476ffd7577568c7a076 /synapse/storage/util | |
parent | Merge pull request #2107 from HarHarLinks/patch-1 (diff) | |
download | synapse-d72667fcce6f751c55ea510c964d68499cb67305.tar.xz |
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.
Diffstat (limited to 'synapse/storage/util')
0 files changed, 0 insertions, 0 deletions