mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 05:34:16 -04:00
Disable aggregation bundling on /sync
responses (#11583)
* Disable aggregation bundling on `/sync` responses A partial revert of #11478. This turns out to have had a significant CPU impact on initial-sync handling. For now, let's disable it, until we find a more efficient way of achieving this. * Fix tests. Co-authored-by: Patrick Cloke <patrickc@matrix.org>
This commit is contained in:
parent
92906e1b60
commit
76aa5537ad
3 changed files with 15 additions and 6 deletions
|
@ -574,11 +574,11 @@ class RelationsTestCase(unittest.HomeserverTestCase):
|
|||
assert_bundle(channel.json_body["event"]["unsigned"].get("m.relations"))
|
||||
|
||||
# Request sync.
|
||||
channel = self.make_request("GET", "/sync", access_token=self.user_token)
|
||||
self.assertEquals(200, channel.code, channel.json_body)
|
||||
room_timeline = channel.json_body["rooms"]["join"][self.room]["timeline"]
|
||||
self.assertTrue(room_timeline["limited"])
|
||||
_find_and_assert_event(room_timeline["events"])
|
||||
# channel = self.make_request("GET", "/sync", access_token=self.user_token)
|
||||
# self.assertEquals(200, channel.code, channel.json_body)
|
||||
# room_timeline = channel.json_body["rooms"]["join"][self.room]["timeline"]
|
||||
# self.assertTrue(room_timeline["limited"])
|
||||
# _find_and_assert_event(room_timeline["events"])
|
||||
|
||||
# Note that /relations is tested separately in test_aggregation_get_event_for_thread
|
||||
# since it needs different data configured.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue