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

Azren/auto compressor save and load #57

Closed Azrenbeth closed 3 years ago

Azrenbeth commented 3 years ago

BUILDS ON azren/graphs_before_abort

Added a new package to the workspace that will be an executable that manages the state compression automatically.

This PR includes methods to save and load the compressor state to and from the database. The idea is that you can run the compressor on a room for a while, save where you got up to, and then continue from that point in the future by reading the save back out of the database again.

(Note: tests in auto_compressor package may not be working in github actions yet)