synapse-old/synapse/storage
reivilibre f3dc6dc19f
Remove old rows from the `cache_invalidation_stream_by_instance` table automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868)
* Add a cache invalidation clean-up task

* Run the cache invalidation stream clean-up on the background worker

* Tune down

* call_later is in millis!

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>

* fixup! Add a cache invalidation clean-up task

* Update synapse/storage/databases/main/cache.py

Co-authored-by: Eric Eastwood <erice@element.io>

* Update synapse/storage/databases/main/cache.py

Co-authored-by: Eric Eastwood <erice@element.io>

* MILLISEC -> MS

* Expand on comment

* Move and tweak comment about Postgres

* Use `wrap_as_background_process`

---------

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
Co-authored-by: Eric Eastwood <erice@element.io>
2023-08-08 11:10:07 +01:00
..
controllers Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00
databases Remove old rows from the `cache_invalidation_stream_by_instance` table automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868) 2023-08-08 11:10:07 +01:00
engines Add a timeout that aborts any Postgres statement taking more than 1 hour. (#15853) 2023-07-03 11:38:57 +01:00
schema Stabilize support for MSC3970: updated transaction semantics (scope to `device_id`) (#15629) 2023-08-04 07:47:18 -04:00
util Combine AbstractStreamIdTracker and AbstractStreamIdGenerator. (#15192) 2023-03-03 08:13:37 -05:00
__init__.py
_base.py Clear event caches when we purge history (#15609) 2023-06-08 13:14:40 +01:00
background_updates.py Fix downgrading to previous version of Synapse (#15907) 2023-07-10 16:24:42 +01:00
database.py Revert "Stop writing to column `user_id` of tables `profiles` and `user_filters`. (#15953) 2023-07-18 11:44:09 +01:00
keys.py
prepare_database.py Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
push_rule.py
roommember.py
types.py More precise type for LoggingTransaction.execute (#15432) 2023-04-14 18:04:49 +00:00