summary refs log tree commit diff
path: root/scripts-dev/check_pydantic_models.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-09-06 11:12:54 +0100
committerGitHub <noreply@github.com>2024-09-06 11:12:54 +0100
commit786de8570bf7ff14a8b98dbad6b9b9c18b05faf7 (patch)
tree283154cbc8b8269229ec329bf40e21d4ea94a388 /scripts-dev/check_pydantic_models.py
parentSpeed up sliding sync by avoiding copies (#17670) (diff)
downloadsynapse-786de8570bf7ff14a8b98dbad6b9b9c18b05faf7.tar.xz
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.
Diffstat (limited to 'scripts-dev/check_pydantic_models.py')
0 files changed, 0 insertions, 0 deletions