-
Notifications
You must be signed in to change notification settings - Fork 459
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
Receipt key with block number #5651
Conversation
I think to have performance improvement we should enable sorting in database |
Sorting in database? |
Was thinking about |
I see one problem - this won't work without resync right? If someone just upgrades DB it will break? |
No, it works fine. I can sync without it, then read with new change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall cool.
Maybe we should decide the key scheme at the begining - read 1 key from blocks/receipts DB:
- if it has prefix - use prefix scheme
- if it doesn't have prefix or no DB - use old scheme
This way we would keep the existing databases consistent and avoid double read from existing databases.
Ok, but which key to read? |
whichever from block db? like open iterator get first key or something similar? |
Done |
Maybe with readahead flag it'll do something.not even with readahead. I guess 50iops per receipts means something else is using it...Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing