-
Notifications
You must be signed in to change notification settings - Fork 248
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
feat(db): use bincode for starknet_transactions
#1883
feat(db): use bincode for starknet_transactions
#1883
Conversation
Another idea: looks like the migration doesn't fully use the available I/O bandwidth (at least with an NVMe SSD) and it's CPU bound. I think we could do the decompression/JSON parsing/bincode encoding/compression steps concurrently so that we use all available I/O bandwidth? The mainnet migration has been running for >2 hours for me and it's still busy re-encoding stuff (so not yet at |
|
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.
LGTM, but looks like you'll have to rebase to latest main
because there are conflicts (including a trivial one because of a storage migration).
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.
LGTM - thanks for persevering through all my only-sometimes-applicable comments!
70f571c
to
f46d11a
Compare
cbe4de5
into
sistemd/1843-split-receipts-and-events
At the same time as changing the format, I tried to optimize and clean up where I could. Let me know if I missed something.
Added DB versioning to the bincoded columns (tx, receipt, events).
This results in a 15GiB saving on Goerli, which is a 8.7% reduction. Maybe we should do this for the headers, too.
Last PR for #1843 before I can open the final big PR.