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

chore: improve prune #2465

Merged
merged 1 commit into from
May 4, 2023
Merged

chore: improve prune #2465

merged 1 commit into from
May 4, 2023

Conversation

mfrankovi
Copy link
Contributor

Review this as well:
Taraxa-project/taraxa-evm#165

Main and account node databases are huge with large number of entries. Any prune where deleting these entries one by one is taking a very long time. This is avoided by having prune load the data in memory that is to be kept and than deleting the entire column in the database at once and recreating it and populating it with data stored in memory. This makes the prune run in about 3 minutes for a month of data.

Since the prune is relatively fast it can be started manually but it is also run on restart for a light node.

@mfrankovi mfrankovi force-pushed the prune_replace_column branch 2 times, most recently from e44e39e to 919f67a Compare May 3, 2023 12:48
@mfrankovi mfrankovi force-pushed the prune_replace_column branch from 919f67a to db9c16c Compare May 4, 2023 10:18
@mfrankovi mfrankovi merged commit 38821db into develop May 4, 2023
@mfrankovi mfrankovi deleted the prune_replace_column branch May 4, 2023 11:15
@taraxadeploy
Copy link
Collaborator

prnet cleaned-up successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants