electrs icon indicating copy to clipboard operation
electrs copied to clipboard

Implement a history pruning limit

Open santzi opened this issue 6 years ago • 2 comments

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.

santzi avatar Oct 25 '19 10:10 santzi

Good idea! I'd start with adding support for pruned nodes - it would allow running Electrum with much less storage required.

romanz avatar Oct 25 '19 13:10 romanz

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?

romanz avatar Oct 03 '21 12:10 romanz