Implement a history pruning limit
Is possible to implement so called history pruning limit to Electrs? The number means how many transactions the server may keep for every single address (example 20 the latest transactions). This could be adjustable value. This will decrease db size and might get small performance boost.
Good idea! I'd start with adding support for pruned nodes - it would allow running Electrum with much less storage required.
Actually, we can support this now since each index row also contain the relevant block height: https://github.com/romanz/electrs/blob/master/doc/schema.md Maybe it is possible to use https://github.com/facebook/rocksdb/wiki/Compaction-Filter?