summary refs log tree commit diff
path: root/synapse/storage/databases/state (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add logging to diagnose a suspicion github/rei/librepush.net-stcache rei/librepush.net-stcacheOlivier Wilkinson (reivilibre)2021-12-201-7/+17
|
* Bypass caching from the old systemOlivier Wilkinson (reivilibre)2021-12-201-25/+27
|
* Bleh logbugfixOlivier Wilkinson (reivilibre)2021-12-201-1/+1
|
* Change things aroundOlivier Wilkinson (reivilibre)2021-12-201-24/+25
|
* Log a little bit moreOlivier Wilkinson (reivilibre)2021-12-201-7/+6
|
* Add some logging and validation to help determine whether this all works or ↵Olivier Wilkinson (reivilibre)2021-12-201-0/+106
| | | | not :)
* Iterate over in-flight requests in descending orderOlivier Wilkinson (reivilibre)2021-12-201-4/+6
|
* Use sorted dictsOlivier Wilkinson (reivilibre)2021-12-201-2/+5
| | | | Note that they are sorted in ascending size order, so this needs further touch-ups.
* Define a comparator for StateFiltersOlivier Wilkinson (reivilibre)2021-12-201-0/+20
|
* Shunt out with StateFilter.all() if many requests are made to the same groupOlivier Wilkinson (reivilibre)2021-12-201-0/+14
|
* Fix up misunderstanding (fixes tests)Olivier Wilkinson (reivilibre)2021-12-201-1/+1
|
* Simplify gatherResults and fix log contextsOlivier Wilkinson (reivilibre)2021-11-041-10/+5
|
* Directly await fetched state for simplicityOlivier Wilkinson (reivilibre)2021-11-041-7/+6
|
* Check != against StateFilter.none() for clarityOlivier Wilkinson (reivilibre)2021-11-041-1/+1
|
* Fix up log contexts in _get_state_for_group_fire_requestOlivier Wilkinson (reivilibre)2021-11-041-5/+6
|
* Use `yieldable_gather_results` helper because it's more elegantOlivier Wilkinson (reivilibre)2021-09-271-15/+5
|
* Convert to review commentsOlivier Wilkinson (reivilibre)2021-09-211-10/+9
|
* Use the in-flight caches for `_get_state_for_groups`Olivier Wilkinson (reivilibre)2021-09-211-22/+15
|
* Add method to get 1 state group, both using and updating in-flight cacheOlivier Wilkinson (reivilibre)2021-09-211-0/+52
|
* Add method to gather in-flight requests and calculate left-over filterOlivier Wilkinson (reivilibre)2021-09-211-0/+40
|
* Add method to request 1 state group, tracking the inflight requestOlivier Wilkinson (reivilibre)2021-09-211-2/+74
|
* Fix remove_stale_pushers job on SQLite. (#10843)reivilibre2021-09-201-3/+3
|
* Add type hints to state database module. (#10823)Patrick Cloke2021-09-152-69/+127
|
* Add type hints to state handler. (#10482)Patrick Cloke2021-07-261-6/+11
|
* Reorganise the database schema directories (#9932)Richard van der Hoff2021-05-0710-233/+0
| | | | | The hope here is that by moving all the schema files into synapse/storage/schema, it gets a bit easier for newcomers to navigate. It certainly got easier for me to write a helpful README. There's more to do on that front, but I'll follow up with other PRs for that.
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-143-3/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Bugbear: Add Mutable Parameter fixes (#9682)Jonathan de Jong2021-04-082-3/+7
| | | | | | | Part of #9366 Adds in fixes for B006 and B008, both relating to mutable parameter lint errors. Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>
* Add type hints to DictionaryCache and TTLCache. (#9442)Patrick Cloke2021-03-291-4/+5
|
* Refactor to ensure we call check_consistency (#9470)Erik Johnston2021-02-241-4/+6
| | | The idea here is to stop people forgetting to call `check_consistency`. Folks can still just pass in `None` to the new args in `build_sequence_generator`, but hopefully they won't.
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-3/+3
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Fix some typos.Patrick Cloke2021-02-121-1/+1
|
* Use execute_batch in more places (#9188)Erik Johnston2021-01-211-2/+2
| | | | | * Use execute_batch in more places * Newsfile
* Mypy fixes for `synapse.handlers.federation` (#8422)Richard van der Hoff2020-09-291-2/+2
| | | For some reason, an apparently unrelated PR upset mypy about this module. Here are a number of little fixes.
* Add checks for postgres sequence consistency (#8402)Erik Johnston2020-09-281-0/+3
|
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-182-2/+2
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Convert state and stream stores and related code to async (#8194)Patrick Cloke2020-08-281-13/+13
|
* Converts event_federation and registration databases to async/await (#8061)Patrick Cloke2020-08-111-11/+7
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-0513-0/+1267