forked-synapse/synapse
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
..
_scripts Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
api Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
app Sliding sync: Store the per-connection state in the database. (#17599) 2024-08-30 15:31:05 +01:00
appservice Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
config import pydantic objects from the _pydantic_compat module (#17667) 2024-09-11 21:01:43 +00:00
crypto Fix fetching signing keys when old_verify_keys is omitted (#17568) 2024-08-14 14:13:56 +01:00
events import pydantic objects from the _pydantic_compat module (#17667) 2024-09-11 21:01:43 +00:00
federation Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
handlers Sliding Sync: Avoid fetching left rooms and add back newly_left rooms (#17725) 2024-09-19 10:07:18 -05:00
http import pydantic objects from the _pydantic_compat module (#17667) 2024-09-11 21:01:43 +00:00
logging Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
media Fix content length on federation /thumbnail responses (#17532) 2024-08-28 11:29:12 +01:00
metrics Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
module_api Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
push Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
replication Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
res Send an email if the address is already bound to an user account (#16819) 2024-04-23 16:45:24 +01:00
rest Add an Admin API endpoint to redact all a user's events (#17506) 2024-09-18 10:08:01 +00:00
server_notices Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
spam_checker_api Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Sliding Sync: Avoid fetching left rooms and add back newly_left rooms (#17725) 2024-09-19 10:07:18 -05:00
streams Fix regression when bounding future tokens (#17391) 2024-07-02 14:06:36 +01:00
synapse_rust Add event.internal_metadata.instance_name (#17300) 2024-06-13 11:32:50 -05:00
types Sliding Sync: Return room tags in account data extension (#17707) 2024-09-16 13:47:35 -05:00
util Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
__init__.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
_pydantic_compat.py import pydantic objects from the _pydantic_compat module (#17667) 2024-09-11 21:01:43 +00:00
event_auth.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
notifier.py Reduce volume of 'Waiting for current token' logs, which were introduced in v1.109.0. (#17428) 2024-07-23 11:51:34 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Register the media threadpool with our metrics (#17566) 2024-08-14 15:11:22 +01:00
visibility.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00