From 0dfb86bf5e31e2fd23b1adf6f01743e0c39b2d09 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 15 Mar 2021 11:59:54 +0000 Subject: [PATCH] Prevent bundling aggregations for state events We're trying this out on hotfixes to see whether it helps address performance issues. There's no need to do aggregation bundling for state events anyways. --- synapse/rest/admin/rooms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synapse/rest/admin/rooms.py b/synapse/rest/admin/rooms.py index f2c42a0f30a4..263d8ec07619 100644 --- a/synapse/rest/admin/rooms.py +++ b/synapse/rest/admin/rooms.py @@ -685,7 +685,10 @@ async def on_GET( results["events_after"], time_now ) results["state"] = await self._event_serializer.serialize_events( - results["state"], time_now + results["state"], + time_now, + # No need to bundle aggregations for state events + bundle_aggregations=False, ) return 200, results