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

Support query historical states that is pruned #12183

Closed
4 tasks
yihuang opened this issue Jun 8, 2022 · 3 comments
Closed
4 tasks

Support query historical states that is pruned #12183

yihuang opened this issue Jun 8, 2022 · 3 comments

Comments

@yihuang
Copy link
Collaborator

yihuang commented Jun 8, 2022

Summary

Say the states between 100 and 200 are pruned, when trying to query state at 110, we can replay the blocks between 100 and 110 based on the state 100 to get the state 110.

This may allow user to use some prunning settings, while keeping the ability to query all historical states, a trade-off between db size and query performance.

Problem Definition

Proposal


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@tac0turtle
Copy link
Member

Personally the best solution is to stream the data elsewhere. Not sure we need to add more intricate logic here

@alexanderbez
Copy link
Contributor

This is not a good solution. This is why we have archive mode (i.e. no pruning). Disk space is cheap. Query against an archive node or stream your state to an external DB.

Are you Ok with me closing this?

@yihuang
Copy link
Collaborator Author

yihuang commented Jun 8, 2022

yeah, I guess it's too complicated, only little to gain.

@yihuang yihuang closed this as completed Jun 8, 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

No branches or pull requests

3 participants