Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device_federation_inbox table is never emptied #17370

Open
richvdh opened this issue Jun 28, 2024 · 1 comment
Open

device_federation_inbox table is never emptied #17370

richvdh opened this issue Jun 28, 2024 · 1 comment

Comments

@richvdh
Copy link
Member

richvdh commented Jun 28, 2024

device_federation_inbox is used to keep a record of the to-device messages we have received and processed from remote servers, to avoid double-processing.

However, it is never cleared out and can get quite large.

(It does not actually store the content of the messages; that goes into device_inbox.)

@richvdh
Copy link
Member Author

richvdh commented Jun 28, 2024

Since this table only exists to give request idempotence, it would be relatively easy to write a timer task to clear out rows more than, say, a week old; we'd probably need to add an index on the timestamp column though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants