-
- Downloads
Add background job to clear unreferenced state groups (#18154)
Fixes #18150 ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [X] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [X] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters) ) --------- Co-authored-by:Erik Johnston <erikj@element.io>
Showing
- changelog.d/18154.feature 1 addition, 0 deletionschangelog.d/18154.feature
- docs/development/database_schema.md 1 addition, 1 deletiondocs/development/database_schema.md
- synapse/_scripts/synapse_port_db.py 30 additions, 0 deletionssynapse/_scripts/synapse_port_db.py
- synapse/storage/controllers/purge_events.py 183 additions, 63 deletionssynapse/storage/controllers/purge_events.py
- synapse/storage/databases/state/bg_updates.py 9 additions, 1 deletionsynapse/storage/databases/state/bg_updates.py
- synapse/storage/databases/state/deletion.py 33 additions, 9 deletionssynapse/storage/databases/state/deletion.py
- synapse/storage/schema/__init__.py 1 addition, 0 deletionssynapse/storage/schema/__init__.py
- synapse/storage/schema/state/delta/89/02_delete_unreferenced_state_groups.sql 16 additions, 0 deletions...ma/state/delta/89/02_delete_unreferenced_state_groups.sql
- synapse/types/storage/__init__.py 4 additions, 0 deletionssynapse/types/storage/__init__.py
- tests/storage/test_purge.py 97 additions, 0 deletionstests/storage/test_purge.py
Loading