Skip to main content
ClickHouse is a column-oriented database for analytics. Its s3 table function reads and writes objects directly, and a MergeTree table can keep its data on an S3 disk. Both work against a Tapedrive bucket with the endpoint and your keys.

Before you start

You need a bucket and a credential. A bucket is a tape that has delegated writes to the gateway, and a credential is an access key pair the gateway operator issues you. Set up a bucket walks through both. A table’s data parts are many files. Run it against your own gateway (gateway setup) rather than a public one.

Configure

The s3 table function takes the endpoint and the keys in the call, so it needs no configuration. A disk takes them in the storage configuration:
/etc/clickhouse-server/config.d/tape.xml

Everyday queries

Writing 200,000 rows through the table function returns in under a second. Twenty inserts of 50,000 rows into the table on the disk take about 1.5 s in total and leave one million rows readable across five parts.

Next

  • DuckDB for querying the same objects in place.
  • Uploads for how multipart parts are stored.