diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-17 23:37:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-17 23:37:08 +0000 |
commit | f3788e3c7881de25c7d699bb9940b3cbd4dc3682 (patch) | |
tree | bfb533714a3c152cebf649612cd9b007ea048352 /synapse/storage/roommember.py | |
parent | Use _get_events_txn instead of _parse_events_txn (diff) | |
download | synapse-f3788e3c7881de25c7d699bb9940b3cbd4dc3682.tar.xz |
Test some ideas that might help performance a bit
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 05b275663e..4e416c50b1 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -183,20 +183,14 @@ class RoomMemberStore(SQLBaseStore): ) def _get_members_query_txn(self, txn, where_clause, where_values): - del_sql = ( - "SELECT event_id FROM redactions WHERE redacts = e.event_id " - "LIMIT 1" - ) - sql = ( - "SELECT e.*, (%(redacted)s) AS redacted FROM events as e " + "SELECT e.* FROM events as e " "INNER JOIN room_memberships as m " "ON e.event_id = m.event_id " "INNER JOIN current_state_events as c " "ON m.event_id = c.event_id " "WHERE %(where)s " ) % { - "redacted": del_sql, "where": where_clause, } |