-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear orphan coverage objects #891
Conversation
are you proposing that this function is run once a day as part of the cleanup process after rewards have been output? |
I was looking at it more before making a decision but I think yes that would be the goal. We just need to decide if we want to remove month old or week old. |
Update clear_coverage_objects to also delete old valid clear_coverage_objects
@thehardbits Could you confirm that any heartbeat that comes in should always have the latest coverage object uuid? |
No, unfortunately that's not the case. Sometimes radio misses the last CO and continues to send old. But radio should not fallback to previously used CO in case it sends new one in HB messages. |
If we run, it will delete:
Total current records 120k
Doing last period and keeping the last 10 valid should delete about 62k coverage objects.