synapse/tests/rest/client/sliding_sync
Eric Eastwood c2e5e9e67c
Sliding Sync: Avoid fetching left rooms and add back newly_left rooms (#17725)
Performance optimization: We can avoid fetching rooms that the user has
left themselves (which could be a significant amount), then only add
back rooms that the user has `newly_left` (left in the token range of an
incremental sync). It's a lot faster to fetch less rooms than fetch them
all and throw them away in most cases. Since the user only leaves a room
(or is state reset out) once in a blue moon, we can avoid a lot of work.

Based on @erikjohnston's branch, erikj/ss_perf


---------

Co-authored-by: Erik Johnston <erik@matrix.org>
2024-09-19 10:07:18 -05:00
..
__init__.py Sliding Sync: Split and move tests (#17504) 2024-07-31 12:20:46 -05:00
test_connection_tracking.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_account_data.py Sliding Sync: Return room tags in account data extension (#17707) 2024-09-16 13:47:35 -05:00
test_extension_e2ee.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_receipts.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_to_device.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_typing.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extensions.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_lists_filters.py Sliding Sync: No need to sort if the range is large enough to cover all of the rooms (#17731) 2024-09-19 09:33:34 +01:00
test_room_subscriptions.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_rooms_invites.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_rooms_meta.py Fix sliding sync for rooms with unknown room version (#17733) 2024-09-19 14:01:11 +01:00
test_rooms_required_state.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_rooms_timeline.py Sliding Sync: Retrieve fewer events from DB in sync (#17688) 2024-09-10 09:52:42 +01:00
test_sliding_sync.py Sliding Sync: Avoid fetching left rooms and add back newly_left rooms (#17725) 2024-09-19 10:07:18 -05:00