matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
142 stars 32 forks source link

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

Closed Azrenbeth closed 2 years ago

Azrenbeth commented 2 years ago

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.