From 94e4842f6f9bf7c64482fe724f8ecd2de20c7fd5 Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Sun, 21 Aug 2022 08:12:17 +0100 Subject: [PATCH] Remove unused columns from membership DB fetch --- synapse/storage/databases/main/roommember.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py index 6b0db96e7699..94bfbef96cd7 100644 --- a/synapse/storage/databases/main/roommember.py +++ b/synapse/storage/databases/main/roommember.py @@ -952,7 +952,7 @@ async def _get_user_ids_from_membership_event_ids( table="room_memberships", column="event_id", iterable=event_ids, - retcols=("user_id", "display_name", "avatar_url", "event_id"), + retcols=("user_id", "event_id"), keyvalues={"membership": Membership.JOIN}, batch_size=1000, desc="_get_user_ids_from_membership_event_ids",