element-hq / element-hq/synapse

Impossible to run a history purge on large rooms without having synapse fall over

Open
#4,228 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.