forked-synapse/synapse/storage
Erik Johnston 786de8570b
Speed up fetching partial-state rooms on sliding sync (#17666)
Instead of having a large cache of `room_id -> bool` about whether a
room is partially stated, replace with a "fetch rooms the user is which
are partially-stated". This is a lot faster as the set of partially
stated rooms at any point across the whole server is small, and so such
a query is fast.

The main issue with the bulk cache lookup is the CPU time looking all
the rooms up in the cache.
2024-09-06 11:12:54 +01:00
..
controllers Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
databases Speed up fetching partial-state rooms on sliding sync (#17666) 2024-09-06 11:12:54 +01:00
engines Sliding sync: Store the per-connection state in the database. (#17599) 2024-08-29 16:26:58 +01:00
schema Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
util Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_base.py Sliding sync: use new DB tables (#17630) 2024-09-01 11:25:39 +01:00
background_updates.py Sliding sync: use new DB tables (#17630) 2024-09-01 11:25:39 +01:00
database.py Sliding sync: Store the per-connection state in the database. (#17599) 2024-08-29 16:26:58 +01:00
keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
prepare_database.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
push_rule.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
roommember.py Speed up sliding sync by avoiding copies (#17670) 2024-09-06 11:12:29 +01:00
types.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00