summary refs log tree commit diff
path: root/synapse/storage/events_worker.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix infinite loop when an event is redacted in a v3 room (#4535)Richard van der Hoff2019-01-311-5/+32
|
* Fix flake8 (#4519)Amber Brown2019-01-301-1/+1
|
* Update synapse/storage/events_worker.pyErik Johnston2019-01-291-1/+1
|
* Check redaction state when event is pulled out of the databaseErik Johnston2019-01-291-0/+13
|
* Fix typoErik Johnston2019-01-291-1/+1
|
* Remove unused argErik Johnston2019-01-291-2/+1
|
* Update synapse/storage/events_worker.pyRichard van der Hoff2019-01-291-1/+1
| | | Co-Authored-By: erikjohnston <erikj@jki.re>
* Implement rechecking of redactionsErik Johnston2019-01-291-1/+25
|
* Replace missed usages of FrozenEventErik Johnston2019-01-251-6/+2
|
* Revert "Require event format version to parse or create events"Erik Johnston2019-01-251-2/+6
|
* Replace missed usages of FrozenEventErik Johnston2019-01-241-6/+2
|
* isortErik Johnston2019-01-231-1/+1
|
* Add support for persisting event format versionsErik Johnston2019-01-231-4/+15
| | | | | | | | | | | | | | Currently we only have the one event format version defined, but this adds the necessary infrastructure to persist and fetch the format versions alongside the events. We specify the format version rather than the room version as: 1. We don't necessarily know the room version, existing events may be either v1 or v2. 2. We'd need to be careful to prevent/handle correctly if different events in the same room reported to be of different versions, which sounds annoying.
* Port storage/ to Python 3 (#3725)Amber Brown2018-08-311-4/+5
|
* Pull in necessary stores in federation_readerErik Johnston2018-08-061-1/+0
|
* Move necessary storage functions to worker classesErik Johnston2018-08-061-0/+84
|
* Merge branch 'master' into developRichard van der Hoff2018-08-021-6/+14
|\
| * Avoid extra db lookupsRichard van der Hoff2018-08-021-6/+14
| | | | | | | | | | Since we're about to look up the events themselves anyway, we can skip the extra db queries here.
* | Run things as background processesRichard van der Hoff2018-07-181-4/+6
|/ | | | | | | | This fixes #3518, and ensures that we get useful logs and metrics for lots of things that happen in the background. (There are certainly more things that happen in the background; these are just the common ones I've found running a single-process synapse locally).
* Attempt to include db threads in cpu usage stats (#3496)Richard van der Hoff2018-07-101-1/+2
| | | | | Let's try to include time spent in the DB threads in the per-request/block cpu usage metrics.
* Add CPU metrics for _fetch_event_listRichard van der Hoff2018-07-091-19/+32
| | | | | add a Measure block on _fetch_event_list, in the hope that we can better measure CPU usage here.
* run isortAmber Brown2018-07-091-13/+12
|
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+2
|
* Merge pull request #3419 from matrix-org/rav/events_per_requestRichard van der Hoff2018-06-221-0/+4
|\ | | | | Log number of events fetched from DB
| * Indirect evt_count updates via method callRichard van der Hoff2018-06-221-1/+1
| | | | | | | | so that we can stub it for the sentinel and not have a billion failing UTs
| * Log number of events fetched from DBRichard van der Hoff2018-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | When we finish processing a request, log the number of events we fetched from the database to handle it. [I'm trying to figure out which requests are responsible for large amounts of event cache churn. It may turn out to be more helpful to add counts to the prometheus per-request/block metrics, but that is an extension to this code anyway.]
* | Pass around the reactor explicitly (#3385)Amber Brown2018-06-221-3/+3
|/
* Misc. py3 fixesAdrian Tschira2018-05-241-1/+1
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+3
| | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object.
* Format docstringErik Johnston2018-04-121-2/+3
|
* Doc we raise on unknown eventErik Johnston2018-04-121-2/+3
|
* Track last processed event received_tsErik Johnston2018-04-111-0/+18
|
* Replace some ujson with simplejson to make it workErik Johnston2018-03-161-1/+1
|
* Split EventsWorkerStore into separate fileErik Johnston2018-02-231-0/+395