rust-synapse-compress-state icon indicating copy to clipboard operation
rust-synapse-compress-state copied to clipboard

A tool to compress some state in a Synapse instance's database

Results 41 rust-synapse-compress-state issues
Sort by recently updated
recently updated
newest added
trafficstars

Right now, compressing a room requires holding its entire state in RAM, which can become arbitrarily large. I don't know the internals of the compression algorithm, but given that state...

``` Fetching state from DB for room '!redacted:t2l.io'... [0s] 8 rows retrieved ``` Even though it is only 8 rows, I watched it take over 5 minutes.

This would make Docker usage easier, as you would not need to bind a volume just for output of the script.

Ran into this as my network requires TLS on postgres connections. Presumably https://github.com/matrix-org/rust-synapse-compress-state/blob/master/src/database.rs#L29 needs changing

Currently the tool is per room, which makes it hard to run as a periodic background task to clean out the database, or as a one-shot "reduce db size" tool....

This tool has now been run quite a lot without issues, so hopefully its safe enough that we can write directly to the database during the run rather than keeping...

I get this error when calling synapse-compress-state -p "postgresql://some-username:localhost/synapse" -r "${room}" ``` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(ConnectParams(StringError("Non-digit characters in port.")))', src/libcore/result.rs:997:5 stack backtrace: 0:...

Please add detailed information to the README for someone, who has never used rust before, how to start the script: # build this rust script 1. install Rust - on...

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...