Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 15edf23

Browse files
authored
Improve performance of query _get_subset_users_in_room_with_profiles (#13299)
1 parent 5526f9f commit 15edf23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/13299.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve performance of query `_get_subset_users_in_room_with_profiles`.

synapse/storage/databases/main/roommember.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _get_subset_users_in_room_with_profiles(
243243
txn: LoggingTransaction,
244244
) -> Dict[str, ProfileInfo]:
245245
clause, ids = make_in_list_sql_clause(
246-
self.database_engine, "m.user_id", user_ids
246+
self.database_engine, "c.state_key", user_ids
247247
)
248248

249249
sql = """

0 commit comments

Comments
 (0)