Created
February 21, 2024 20:02
-
-
Save maxjustus/856ec7de457bb7d7c864b5e2d07b42d3 to your computer and use it in GitHub Desktop.
Pipe a continuous stream into a clickhouse table and insert in chunks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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