element-hq / element-hq/synapse
Impossible to run a history purge on large rooms without having synapse fall over
Open
A-Moderation
T-Defect
z-bug
z-p2
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 46
Description
This issue has been migrated from [#4228](https://github.com/matrix-org/synapse/issues/4228).
---
The database ends up locking on the various event tables, which prevents most of the workers from inserting or retrieving data from those tables. It'd be awesome if the purge did some sort of batching so I can remove the millions of events I don't need from my database without having the server go down while it does so.
Contributor guide
Assessment
This issue has not been assessed yet.