anonymousland-synapse/synapse/push
Erik Johnston c72d26c1e1
Refactor EventContext (#12689)
Refactor how the `EventContext` class works, with the intention of reducing the amount of state we fetch from the DB during event processing.

The idea here is to get rid of the cached `current_state_ids` and `prev_state_ids` that live in the `EventContext`, and instead defer straight to the database (and its caching). 

One change that may have a noticeable effect is that we now no longer prefill the `get_current_state_ids` cache on a state change. However, that query is relatively light, since its just a case of reading a table from the DB (unlike fetching state at an event which is more heavyweight). For deployments with workers this cache isn't even used.


Part of #12684
2022-05-10 19:43:13 +00:00
..
__init__.py Add class-diagrams and notes for push. (#12676) 2022-05-10 07:43:34 -04:00
action_generator.py Refactor EventContext (#12689) 2022-05-10 19:43:13 +00:00
baserules.py Implement MSC3786: Add a default push rule to ignore m.room.server_acl events (#12601) 2022-05-10 08:57:36 +01:00
bulk_push_rule_evaluator.py Move free functions into PushRuleEvaluatorForEvent. (#12677) 2022-05-10 07:54:30 -04:00
clientformat.py Add an additional HTTP pusher + push rule tests. (#12188) 2022-03-11 08:45:26 -05:00
emailpusher.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
httppusher.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
mailer.py Un-revert Jinja2 fix (#12313) 2022-03-28 17:02:57 +00:00
presentable_names.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
push_rule_evaluator.py Move free functions into PushRuleEvaluatorForEvent. (#12677) 2022-05-10 07:54:30 -04:00
push_tools.py Implement changes to MSC2285 (hidden read receipts) (#12168) 2022-05-04 11:59:22 -04:00
push_types.py Improved push typing (#11409) 2021-11-30 11:49:20 +00:00
pusher.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
pusherpool.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
rulekinds.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00