From 30223fe8d891b003236547fd9683f1c356941ec4 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 17 Jun 2022 12:39:54 +0100 Subject: [PATCH 1/2] Fix type error introduced accidentally by #13045 --- synapse/storage/databases/main/devices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py index 93d980786e03..adde5d097810 100644 --- a/synapse/storage/databases/main/devices.py +++ b/synapse/storage/databases/main/devices.py @@ -1245,8 +1245,8 @@ async def get_device_list_changes_in_rooms( def _get_device_list_changes_in_rooms_txn( txn: LoggingTransaction, - clause, - args, + clause: str, + args: List[Any], ) -> Set[str]: txn.execute(sql.format(clause=clause), args) return {user_id for user_id, in txn} From 9b94d17ddf752f556661f491cc3089c2b1761bf5 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 17 Jun 2022 12:40:38 +0100 Subject: [PATCH 2/2] Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) --- changelog.d/13098.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/13098.feature diff --git a/changelog.d/13098.feature b/changelog.d/13098.feature new file mode 100644 index 000000000000..7b0667ba9516 --- /dev/null +++ b/changelog.d/13098.feature @@ -0,0 +1 @@ +Speed up fetching of device list changes in `/sync` and `/keys/changes`.