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
143 stars 33 forks source link

Option for minimum saving #9

Open jo-so opened 5 years ago

jo-so commented 5 years ago

To speed up the maintenance of the state table it would be helpful to skip minimal savings. A gain of fewer then 500 rows isn't worth the verification of the result and the execution of the SQL commands. What's your opinion?

How about adding a command line option to specify the minimal saving to consider an update?