summary refs log tree commit diff
path: root/synapse/handlers/initial_sync.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor state group lookup to reduce DB hits (#4011)Erik Johnston2018-10-251-2/+2
| | | | | | | | Currently when fetching state groups from the data store we make two hits two the database: once for members and once for non-members (unless request is filtered to one or the other). This adds needless load to the datbase, so this PR refactors the lookup to make only a single database hit.
* Integrate presence from hotfixes (#3694)Amber Brown2018-08-181-0/+4
|
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
|
* another couple of logcontext leaksRichard van der Hoff2018-07-241-4/+6
|
* Logcontext fixesRichard van der Hoff2018-07-241-13/+15
| | | | Fix some random logcontext leaks.
* run isortAmber Brown2018-07-091-6/+3
|
* Fix returned token is no longer a tupleErik Johnston2018-05-091-1/+1
|
* Refactor get_recent_events_for_room return typeErik Johnston2018-05-091-5/+5
| | | | | | There is no reason to return a tuple of tokens when the last token is always the token passed as an argument. Changing it makes it consistent with other storage APIs
* Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-5/+7
| | | | | | 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.
* Remove preserve_context_over_{fn, deferred}Richard van der Hoff2017-11-141-2/+2
| | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off.
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
| | | | what could possibly go wrong
* Format presence events on the edges instead of reformatting them multiple timesErik Johnston2017-03-151-1/+10
|
* Shuffle receipt handler around so that worker apps don't need to load itErik Johnston2016-11-231-3/+4
|
* Support /initialSync in synchrotron workerErik Johnston2016-09-211-0/+443