ClickHouse
Database / data tool · Free
A column-oriented SQL database for analytical queries: it helps process large event datasets and embedded product analytics.
Also known as: ClickHouse/ClickHouse; clickhouse; clickhouse-db; clickhouse-database

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Analyze large event datasets through SQL
- Upload sample events and build SQL aggregations for the required product metrics
Example workflow
A possible workflow; this is not a report of hands-on testing.
Analyze large event datasets through SQL.
Before you start
- A schema, test dataset, and queries.
- A supported database or runtime.
Steps
- Define an event table with suitable types and storage order.
- Upload sample events and build SQL aggregations for the required product metrics.
- Check schema changes, indexes, and data recovery.
Check your result
- Query results match the reference data.
- Check access permissions, backup recovery, and load before production use.
Choosing ClickHouse
Analyze large event datasets through SQL
Choose this when
- Analyze large event datasets through SQL
- Upload sample events and build SQL aggregations for the required product metrics
Consider alternatives when
- When choosing for this topic, compare ClickHouse with Apache Superset. A candidate to compare under the topic: Databases. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare ClickHouse with DuckDB. A candidate to compare under the topic: Databases. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
- The tutorial recommends querying only required columns rather than frequently using SELECT *.
Frequently asked questions
What can you use for free in ClickHouse?
Code and local use under Apache-2.0.
What additional costs might arise with ClickHouse?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for ClickHouse?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with ClickHouse?
Define an event table with suitable types and storage order. Upload sample events and build SQL aggregations for the required product metrics. Check schema changes, indexes, and data recovery.
How can I enrich analytical queries with reference data?
The official tutorial demonstrates data loading, GROUP BY, and JOIN, plus an in-memory dictionary with an HTTP CSV source. dictGet and its variants retrieve values by key; dictHas checks existence. LIFETIME controls dictionary refresh; 0 disables automatic refresh.
Related tasks and approaches
- Apache Superset
A candidate to compare under the topic: Databases. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- DuckDB
A candidate to compare under the topic: Databases. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Metabase
A candidate to compare under the topic: Databases. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- ClickHouse
- database
- Development