Implement a lotus-shed command to garbage collect all the indices not available in the state store #12377
Closed
3 of 9 tasks
Labels
kind/feature
Kind: Feature
Checklist
Ideas
.Lotus component
What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.
Before unifying all the indexes (msg, tx, event) into a single DB, it’s crucial to garbage-collect (GC) any indices that are no longer referenced in the state store. This step will ensure that pruned or obsolete data isn't carried over during the migration, leading to a cleaner and more efficient database.
Describe the solution you'd like
Introduce a lotus-shed command that performs garbage collection on all indices not referenced by the current state. This command should effectively remove unnecessary indexes, optimizing the database before the unification of the indexes.
Additional context
This has been discussed here as well and it will be helpful to @aarshkshah1992, as he is working on unifying the DB for the indexes.
The text was updated successfully, but these errors were encountered: