Skip to content
Data & ML · Web app

ClickHouse

Analytics SQL over millions of rows.
  • 20 Dcoins / hour
  • standard machine
  • ready in about 10 seconds
  • database
  • data-science

About ClickHouse

ClickHouse is a column-oriented database built for analytics: it answers aggregate queries over millions of rows in a fraction of a second. This lab runs a single ClickHouse 26.8 server and opens on Play, its query editor in the browser, where you sign in with the user and password shown on the lab page.

Generate a table of a million rows with the numbers() function and start asking questions of it. You learn why the MergeTree engine wants an ORDER BY key, how storing data by column changes what is cheap and what is expensive, and the functions analysts reach for every day: quantiles, uniq for approximate distinct counts, and grouping by time buckets. Access management is switched on for the login, so CREATE USER, roles and GRANT can be practised too.

Tables are kept on your volume. Use it beside the Databases and SQL track to see how an analytics database differs from PostgreSQL, which is designed for transactions.

What is installed

  • Column-oriented SQL engine
  • Play query editor in the browser
  • MergeTree tables
  • HTTP interface

What it is good for

  • Analytics SQL practice
  • OLAP vs OLTP comparison
  • Aggregations over large tables
  • Data-engineering track

What it costs

20 Dcoins an hour while it runs (a standard machine), billed by the minute. Included on Pro and Power. Every new account starts with free Dcoins.

From Start to a working ClickHouse takes about 10 seconds, measured on our lab server. If the server is asleep, waking it first adds a minute or two.

Courses that practise this

Similar labs