synapse-product/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 Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
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 Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
config Merge pull request #6907 from matrix-org/babolivier/acme-config 2020-02-18 16:11:31 +00:00
crypto pass room_version into compute_event_signature (#6807) 2020-01-31 13:47:43 +00:00
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 comment for run_in_background 2020-01-12 21:53:47 +00:00
metrics Fix up some typechecking (#6150) 2019-10-02 05:29:01 -07:00
module_api Cleanups and additions to the module API 2020-01-12 21:31:44 +00:00
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 Allow HS to send emails when adding an email to the HS (#6042) 2019-09-20 15:21:30 +01:00
rest Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939) 2020-02-18 16:23:25 +00:00
server_notices Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state s/get_room_version/get_room_version_id/ 2020-01-31 10:06:21 +00:00
static Fix SSO fallback login 2019-09-12 11:42:47 +01:00
storage Increase DB/CPU perf of _is_server_still_joined check. (#6936) 2020-02-19 10:15:49 +00:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
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 fix bad variable ref 2020-01-28 14:55:22 +00:00
notifier.py Wake up transaction queue when remote server comes back online (#6706) 2020-01-17 10:27:19 +00:00
python_dependencies.py Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
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 Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
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