forked-synapse/changelog.d
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
..
.gitignore
12477.misc Add some type hints to datastore. (#12477) 2022-05-10 14:07:48 -04:00
12586.misc Add @cancellable decorator, for use on request handlers (#12586) 2022-05-10 14:05:22 +01:00
12588.misc Add ability to cancel disconnected requests to SynapseRequest (#12588) 2022-05-10 14:06:08 +01:00
12630.misc Add helper class for testing request cancellation (#12630) 2022-05-10 14:06:56 +01:00
12676.misc Add class-diagrams and notes for push. (#12676) 2022-05-10 07:43:34 -04:00
12677.misc Move free functions into PushRuleEvaluatorForEvent. (#12677) 2022-05-10 07:54:30 -04:00
12679.misc Stop writing to event_reference_hashes (#12679) 2022-05-10 15:35:08 +01:00
12689.misc Refactor EventContext (#12689) 2022-05-10 19:43:13 +00:00
12694.misc Capture the Deferred for request cancellation in _AsyncResource (#12694) 2022-05-10 20:39:05 +01:00
12695.misc Fix incorrect type hint in filtering code. (#12695) 2022-05-10 14:10:22 -04:00