anonymousland-synapse/synapse/storage
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
..
data_stores Increase DB/CPU perf of _is_server_still_joined check. (#6936) 2020-02-19 10:15:49 +00:00
engines Warn if postgres database has non-C locale. (#6734) 2020-01-28 13:44:21 +00:00
schema Move schema delta files to the correct data store. 2019-10-24 16:45:03 +01:00
util Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
__init__.py Move are_all_users_on_domain checks to main data store. 2019-12-06 13:43:40 +00:00
_base.py Allow streaming cache invalidate all to workers. (#6749) 2020-01-22 10:37:00 +00:00
background_updates.py Add a background update to clear tombstoned rooms from the directory (#6648) 2020-01-07 14:18:43 +00:00
database.py Reduce performance logging to DEBUG (#6833) 2020-02-05 08:57:37 +00:00
keys.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
persist_events.py Increase DB/CPU perf of _is_server_still_joined check. (#6936) 2020-02-19 10:15:49 +00:00
prepare_database.py Warn if postgres database has non-C locale. (#6734) 2020-01-28 13:44:21 +00:00
presence.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
purge_events.py Fix purge_room admin API (#6711) 2020-01-15 18:13:47 +00:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
roommember.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
state.py Add StateMap type alias (#6715) 2020-01-16 13:31:22 +00:00