-
Notifications
You must be signed in to change notification settings - Fork 13
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
core, ethdb: use freezer batch for sync #24
core, ethdb: use freezer batch for sync #24
Conversation
core/blockchain.go
Outdated
if aBatch.ValueSize() > ethdb.IdealAncientBatchSize { | ||
if err := aBatch.Write(); err != nil { | ||
return i, err | ||
} | ||
aBatch.Reset() | ||
} |
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.
It would be really nice if we can somehow avoid having the situation where e.g. the size of the receipts
trigger flushes every second 'block', which flushes even the tiny things like td
. If we can allow some portions to temporarily on-disk stray ahead of other parts, then we save a lot of syscalls.
That's what we were discussing yesterday on discord.
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.
It's a nice idea. I have to think about how to change the code.
eth: disable legacy syncing on the merge interop pr for now
No description provided.