Why Nostr? What is Njump?
2023-08-22 23:01:14
in reply to

Fabio Manganiello on Nostr: I've caught the (actually quite obvious) culprit. Some users on the server were ...

I've caught the (actually quite obvious) culprit.

Some users on the server were subscribed to #matrix:matrix.org.

Several hundreds of thousands of state events are from that room alone.

Running /_synapse/admin/v1/purge_history now, maybe I can clean up a lot of garbage before spending a whole day migrating garbage from a DBMS to another, just to dump once it gets on the new DBMS.

Still, I wish that:

1. The logic for compacting state events on #Synapse was something that could be configured to run automatically and periodically (and enabled by default) from the server itself, rather than relying on 3rd-party tools only once the database is already choking.

2. The logic for linking events and its data representation is admittedly quite cool and flexible now that I understand it a bit better. However, you lose all the pros if you can't efficiently run something like "remove everything about this room before this timestamp" without having to transverse potentially millions of events. Even a simple indexed created/updated timestamp column on the events and *state tables would help - just saying.
Author Public Key
npub1v78mmuz20p6qd6nve30axhqu74avwn4f6z4grhug7755rat7wh3syukv0u