Skip to content

Instantly share code, notes, and snippets.

@maxjustus
Created February 21, 2024 20:02
Show Gist options
  • Save maxjustus/856ec7de457bb7d7c864b5e2d07b42d3 to your computer and use it in GitHub Desktop.
Save maxjustus/856ec7de457bb7d7c864b5e2d07b42d3 to your computer and use it in GitHub Desktop.
Pipe a continuous stream into a clickhouse table and insert in chunks
./s5cmd ls s3://mybucket/* | parallel --pipe -N 1000 'clickhouse client --query "insert into some_table FORMAT TSVRaw settings async_insert=1"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment