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 Fix detecting unknown devices from remote encrypted events. (#6848) 2020-02-04 17:25:54 +00:00
app Add support for putting fed user query API on workers (#6873) 2020-02-07 15:45:39 +00:00
appservice
config Merge pull request #6907 from matrix-org/babolivier/acme-config 2020-02-18 16:11:31 +00:00
crypto
events Merge pull request #6872 from matrix-org/rav/dictproperty 2020-02-18 16:21:02 +00:00
federation Add support for putting fed user query API on workers (#6873) 2020-02-07 15:45:39 +00:00
groups Allow moving group read APIs to workers (#6866) 2020-02-07 11:14:19 +00:00
handlers Merge pull request #6945 from matrix-org/babolivier/fix-retention-debug-log 2020-02-19 10:12:55 +00:00
http Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
logging
metrics
module_api
push Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
replication Allow moving group read APIs to workers (#6866) 2020-02-07 11:14:19 +00:00
res/templates
rest Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939) 2020-02-18 16:23:25 +00:00
server_notices
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state
static
storage Increase DB/CPU perf of `_is_server_still_joined` check. (#6936) 2020-02-19 10:15:49 +00:00
streams
util Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
__init__.py 1.10.1 2020-02-17 16:27:33 +00:00
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 Add typing to synapse.federation.sender (#6871) 2020-02-07 13:56:38 +00:00
types.py
visibility.py filter out m.room.aliases from the CS API until a better solution is specced (#6878) 2020-02-10 09:36:23 +00:00