Menu

Ran it on ClickHouse #1: 5 TiB of GitHub events in 423 GiB
📰

Ran it on ClickHouse #1: 5 TiB of GitHub events in 423 GiB

DEV Community: database·Mohammad Lareb Zafar·2 days ago
#2ZnrdnwH
#devtodatabase#devto#dev#columns#column
Long article (582 words) — no AI summary yet.
Reading 0:00
15s threshold

I ran one query on a public ClickHouse server, and it told me where 4.97 TiB of data went.

The prompt was a Show HN this week. misa77 is a compressor that accepts slower compression in exchange for fast decoding. On the Silesia corpus in its README, misa77 -3 decodes at 5,909 MB/s, lz4 1.11.0 at 2,551 MB/s and zstd 1.5.7 -1 at 905 MB/s. The price shows up on the other side: level 6 compresses at 1.79 MB/s. The README puts it plainly: misa77 levels with LZ4 and zstd-class ratios "decode roughly 2 times faster than their counterparts."

That tradeoff is familiar to anyone who works on column stores. Data is written once and read many times, so the read side usually wins. I wanted to see what compression looks like on a real table, so I picked the one everyone can query.

The query

play.clickhouse.com is a public ClickHouse server with no sign-up. It has a github_events table.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.