Skip to content

Add method that compresses the chunks with lowest uncompressed state_group ids #72

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

Conversation

Azrenbeth
Copy link
Contributor

This is an alternative to #65 which compressed the rooms with the most uncompressed data.

This way won't work on the largest rooms first, so it might take longer to get the same space savings, but it doesn't need to count the number of rows in state_groups_state which would have taken a long time if a room hadn't been compressed before and had a lot of state.

Azrenbeth added 4 commits September 20, 2021 09:29
Query database to retrieve largest uncompressed rooms
Go through each one it turn and compress (in chunks)

Note: lots of database connections are started and dropped, left as
future work to handle keeping connections alive and handling lost
connections well.
Previous attempts counted the rows in state_groups_state, but this
is slow and unneccessary.
@Azrenbeth Azrenbeth merged commit a069d87 into matrix-org:main Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants