synapse/changelog.d
Erik Johnston dfd00a986f
Fix sliding sync performance slow down for long lived connections. (#19206)
Fixes https://github.com/element-hq/synapse/issues/19175

This PR moves tracking of what lazy loaded membership we've sent to each
room out of the required state table. This avoids that table from
continuously growing, which massively helps performance as we pull out
all matching rows for the connection when we receive a request.

The new table is only read when we have data in a room to send, so we
end up reading a lot fewer rows from the DB. Though we now read from
that table for every room we have events to return in, rather than once
at the start of the request.

For an explanation of how the new table works, see the
[comment](https://github.com/element-hq/synapse/blob/erikj/sss_better_membership_storage2/synapse/storage/schema/main/delta/93/02_sliding_sync_members.sql#L15-L38)
on the table schema.

The table is designed so that we can later prune old entries if we wish,
but that is not implemented in this PR.

Reviewable commit-by-commit.

---------

Co-authored-by: Eric Eastwood <erice@element.io>
2025-12-12 10:02:57 +00:00
..
.gitignore
18402.misc Group non-breaking dependabot PRs together to reduce review load (#18402) 2025-12-05 10:48:01 +00:00
19187.misc Be able to shutdown homeserver that hasn't setup (#19187) 2025-12-02 10:58:06 -06:00
19206.bugfix Fix sliding sync performance slow down for long lived connections. (#19206) 2025-12-12 10:02:57 +00:00
19212.misc Respond with useful error codes when Content-Length header/s are invalid (#19212) 2025-12-08 21:39:18 +00:00
19232.misc Be able to shutdown homeserver that failed to start (#19232) 2025-12-02 11:28:46 -06:00
19234.misc Switch the build backend from poetry-core to maturin (#19234) 2025-12-10 14:46:47 +00:00
19253.misc Dependabot: allow 10 open PRs for general updates (#19253) 2025-12-02 16:45:54 +00:00
19254.removal Remove "Updates to locked dependencies" section from changelog (#19254) 2025-12-02 16:45:41 +00:00
19258.misc Add a 14-day cooldown for dependency updates (#19258) 2025-12-02 16:45:28 +00:00
19262.misc Remove the currently broken netlify GHA workflow (#19262) 2025-12-02 16:46:08 +00:00
19267.bugfix Update changelog 2025-12-02 13:11:50 -07:00
19278.misc Don't include debug logs in Clock unless explicitly enabled (#19278) 2025-12-04 23:49:24 +00:00
19289.misc Use uv to test full set of minimum deps in CI (#19289) 2025-12-11 17:58:27 +00:00