Added more use of ProgressLogger (#8504)
Fixes Closes Resolves #8504
Changes:
- Added ProgressLogger to the FullPruningDb class to show progress while pruning.
- The logger starts when pruning begins and updates as keys are processed.
- Cleaned up the logger after the pruning is done to keep things tidy.
Types of changes
What types of changes does your code introduce?
- [X] Optimization
- [X] Refactoring
- [X] Documentation update
- [X] Build-related changes
Testing
Requires testing
- [] Yes
- [X] No
If yes, did you write tests?
- [ ] Yes
- [ ] No
Notes on testing
tested this locally, and the ProgressLogger works great, showing progress during the pruning process.
Documentation
Requires documentation update
- [ ] Yes
- [X] No
If yes, link the PR to the docs update or the issue with the details labeled docs. Remove if not applicable.
Requires explanation in Release Notes
- [ ] Yes
- [ ] No
If yes, fill in the details here. Remove if not applicable.
Remarks
This change makes it easier to see what's happening during the pruning process, which is super helpful for long-running tasks.
Did you run it?
As in, run full pruning.
@LukaszRozmej @asdacap Thanks for the feedback! I've made the following changes:
- Increased the progress logging threshold to 100000 keys as suggested
- Removed the TotalKeys calculation to avoid incorrect upper bound
- Progress logger now tracks actual processed keys
Regarding the question about running full pruning - I haven't run it yet.
@LukaszRozmej @asdacap Thanks for the feedback! I've made the following changes:
- Increased the progress logging threshold to 100000 keys as suggested
- Removed the TotalKeys calculation to avoid incorrect upper bound
- Progress logger now tracks actual processed keys
Regarding the question about running full pruning - I haven't run it yet.
Forgot to push? Please run and test and share new logs.
@LukaszRozmej i already pushed it are u able to see it ?
@LukaszRozmej kindly check and update me
Can share some log?