matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Update the stream_cache less often. #16586

Closed clokep closed 12 months ago

clokep commented 1 year ago

I think this is safe to do -- instead of updating the stream cache (which is somewhat expensive) for each persisted event, only do it for the maximum stream ordering being persisted.

Based on #16584.