summary refs log tree commit diff
path: root/docs/postgres.md
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-02-19 10:15:49 +0000
committerGitHub <noreply@github.com>2020-02-19 10:15:49 +0000
commit0d0bc35792aac0490e35cd3514b76d7aada7c8e0 (patch)
tree79522ae04adcd0aa345d09f4045a36f4ae3e338b /docs/postgres.md
parentMerge pull request #6945 from matrix-org/babolivier/fix-retention-debug-log (diff)
downloadsynapse-0d0bc35792aac0490e35cd3514b76d7aada7c8e0.tar.xz
Increase DB/CPU perf of `_is_server_still_joined` check. (#6936)
* Increase DB/CPU perf of `_is_server_still_joined` check.

For rooms with large amount of state a single user leaving could cause
us to go and load a lot of membership events and then pull out
membership state in a large number of batches.

* Newsfile

* Update synapse/storage/persist_events.py

Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Fix adding if too soon

* Update docstring

* Review comments

* Woops typo

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'docs/postgres.md')
0 files changed, 0 insertions, 0 deletions