lightningstream icon indicating copy to clipboard operation
lightningstream copied to clipboard

stats: optionally also show how many entries are deleted entries

Open wojas opened this issue 2 years ago • 0 comments

It would be very helpful if the stats command can also output how many entries per DBI are marked as deleted.

Since this requires a full scan of the LMDB, this should be disabled by default and require a flag like --full.

As a workaround, you can find the number of deleted entries with something like:

lightningstream snapshots dump ... | grep flags=01 | wc -l

wojas avatar Jun 09 '23 09:06 wojas