mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 06:32:54 +00:00
Improve performance of query _get_subset_users_in_room_with_profiles (#13299)
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
Improve performance of query `_get_subset_users_in_room_with_profiles`.
|
||||
@@ -243,7 +243,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
||||
txn: LoggingTransaction,
|
||||
) -> Dict[str, ProfileInfo]:
|
||||
clause, ids = make_in_list_sql_clause(
|
||||
self.database_engine, "m.user_id", user_ids
|
||||
self.database_engine, "c.state_key", user_ids
|
||||
)
|
||||
|
||||
sql = """
|
||||
|
||||
Reference in new issue
Block a user