Skip to content
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

Remove old data from database #1924

Open
kderme opened this issue Dec 16, 2024 · 0 comments
Open

Remove old data from database #1924

kderme opened this issue Dec 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kderme
Copy link
Contributor

kderme commented Dec 16, 2024

The db keeps a lot of old records not related to the currest state. While keeping the historic evolution of values can be useful for explorers, it also takes a lot of disk space. We should have an option to periodically prune old values similar to how we prune spent outputs. These values can include:

  • old stake distribution
  • old rewards
  • old drep distribution
    ...

The insert options can be extended with a new field:
prune: {
epoch_stake:: Integer
rewards:: Integer
drep_distr: Integer
}

Where each Integer shows many many epochs in the past should be maintained (default would be null).

@kderme kderme added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant