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: consider adding delete_prefix #1225

Closed
tzemanovic opened this issue Mar 15, 2023 · 0 comments · Fixed by #1632
Closed

storage: consider adding delete_prefix #1225

tzemanovic opened this issue Mar 15, 2023 · 0 comments · Fixed by #1632
Assignees

Comments

@tzemanovic
Copy link
Member

Akin to prefix_iter, for dealing with e.g. lazy collections it would be convenient to be able to delete anything with a matching storage prefix. We'd need to do this via WriteLog, but when the WriteLog is being committed to DB, there's delete_range in RocksDB that can potentially be used to then apply it.

This would be helpful for finalize-block's apply_inflation rewards accumulator added in #714.

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

Successfully merging a pull request may close this issue.

2 participants