mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Improve performance of query _get_subset_users_in_room_with_profiles
(#13299)
This commit is contained in:
parent
5526f9fc4f
commit
15edf23626
1
changelog.d/13299.misc
Normal file
1
changelog.d/13299.misc
Normal file
@ -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 = """
|
||||
|
Loading…
Reference in New Issue
Block a user