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

added new flags to configure flush intervals #69

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

fschoell
Copy link
Contributor

this reworks some flush intervals to account Clickhouse specific loading improvements. Notable changes:

  • --batch-row-flush-interval has been added to ensure optimal flush sizes for Clickhouse (recommended flush size is between 10k and 100k rows for bulk inserts)
  • --live-block-flush-interval has been added to allow reducing the number of flushes on fast block chains (Clickhouse recommends to not do more than one insert per second)
  • --flush-intervalhas been renamed to --batch-block-flush-interval to following the same naming convention

cmd/substreams-sink-sql/run.go Show resolved Hide resolved
db/db.go Outdated Show resolved Hide resolved
cmd/substreams-sink-sql/run.go Outdated Show resolved Hide resolved
cmd/substreams-sink-sql/run.go Outdated Show resolved Hide resolved
sinker/sinker.go Outdated Show resolved Hide resolved
@fschoell fschoell force-pushed the feature/flush_configurations branch from 485ece9 to 3459d75 Compare December 19, 2024 12:53
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

Successfully merging this pull request may close these issues.

2 participants