MatrixSynapse/synapse
Erik Johnston 0d0bc35792
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>
2020-02-19 10:15:49 +00:00
..
_scripts
api
app
appservice
config
crypto
events
federation
groups
handlers
http Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
logging
metrics
module_api
push
replication
res/templates
rest
server_notices
spam_checker_api
state
static
storage Increase DB/CPU perf of `_is_server_still_joined` check. (#6936) 2020-02-19 10:15:49 +00:00
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
secrets.py
server.py Allow moving group read APIs to workers (#6866) 2020-02-07 11:14:19 +00:00
server.pyi
types.py
visibility.py