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

feat: move body writing to BlockWriter trait #12538

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Nov 14, 2024

Moves logic for writing bodies to database from BodyStage to BlockWriter::append_block_bodies. This will allow us to make BlockWriter generic over block body as we now don't have chain-specific persistence logic in there.

Initially I've tried to unify persistence code paths for live sync and backfill sync but this doesn't seem feasible/doesn't make much sense because during backfill sync we write in batches and to different tables

@klkvr klkvr changed the title feat: move body writing to BlockWriter stage feat: move body writing to BlockWriter trait Nov 14, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@mattsse mattsse added A-staged-sync Related to staged sync (pipelines and stages) A-db Related to the database labels Nov 14, 2024
@klkvr klkvr added this pull request to the merge queue Nov 14, 2024
Merged via the queue into main with commit ff6b78a Nov 14, 2024
41 checks passed
@klkvr klkvr deleted the klkvr/body-write-in-trait branch November 14, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database A-staged-sync Related to staged sync (pipelines and stages)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants