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

[storage] Block Pruning Optimization #261

Merged
merged 4 commits into from
Dec 2, 2020

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Dec 2, 2020

This PR improves significantly improves block pruning performance by flattening the storage of transaction records. This new modeling approach means we no longer need to fetch a record before we prune it!

Changes

  • flatten transaction data model
  • concurrent transaction pruning
  • reduce number of fetches needed to prune
  • pass existing tests
  • cleanup variable naming

@coveralls
Copy link

coveralls commented Dec 2, 2020

Pull Request Test Coverage Report for Build 13016

  • 73 of 82 (89.02%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.3%) to 78.411%

Changes Missing Coverage Covered Lines Changed/Added Lines %
storage/modules/block_storage.go 73 82 89.02%
Files with Coverage Reduction New Missed Lines %
storage/modules/block_storage.go 3 78.03%
Totals Coverage Status
Change from base Build 12970: 0.3%
Covered Lines: 7914
Relevant Lines: 10093

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

3 participants