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

Gradual compaction #384

Merged

Conversation

uprendis
Copy link
Contributor

@uprendis uprendis commented Nov 2, 2022

  • Separate compaction into 256 prefixes, where each prefix is separated into 32 iterations, depending on range between first and last keys of the prefix. Previously compaction was separated only in 256 prefixes, which resulted into overly large compaction ranges, because data distribution isn't uniform and too much data may be stored behind the same prefix
  • Add forced DB compaction after genesis processing and DB transformation/migration, because Pebble DB has performance issues after inserting a lot of data without manual compaction

Copy link
Contributor

@hadv hadv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

utils/compactdb/compactdb.go Outdated Show resolved Hide resolved
@uprendis uprendis merged commit 9e2374a into Fantom-foundation:develop Nov 14, 2022
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.

2 participants