Open shekhirin opened 1 week ago
all of this should be done concurrent to engine request processing with #8742 will let us do since this requires a write tx this must be coordinated, and handled XOR to db commits.
what is the expensive part during pruning, is it read related or write? imo we can like split this across txs because our assumptions here are:
Samply profile
Describe the feature
Ref https://github.com/paradigmxyz/reth/issues/8995
What if we do as much of accounts/storage history pruning work as possible in a read transaction and then open a write transaction only to seek to the entries that need modification/deletion.
What we can do here is history pruning lagged by one or several blocks:
It would also be useful to collect Samply profiles for history pruning to see what takes the most time.
Additional context
No response