See Rockset
in action

Get a product tour with a Rockset engineer

ClickHouse vs Rockset

Compare and contrast ClickHouse and Rockset by architecture, ingestion, queries, performance, and scalability.

ClickHouse vs Rockset Architecture

Architecture
ClickHouse
Rockset
Deployment model
• Self-managed on-premises or on cloud infrastructure • Several managed cloud services available
SaaS - infrastructure, software and cluster ops managed by service provider
Use of storage hierarchy
• Designed to use hard disk drives for storage • Can also use SSD if available
• SSDs store shared hot data, accessible from any Virtual Instance cluster • Cloud storage for durability
Isolation of ingest and query
No
Yes - separate compute clusters (Virtual Instances) for ingest and query
Separation of compute and storage
No - although ClickHouse Cloud decouples compute and cloud storage
Yes
Isolation for multiple applications
No
Yes - separate compute cluster (Virtual Instance) for each application

ClickHouse is open source and can be deployed anywhere. Several vendors such as ClickHouse, the company, and Tinybird also offer cloud versions. Compute and storage are tightly coupled, although ClickHouse Cloud was rearchitected to decouple compute and storage. ClickHouse Cloud pricing is based on compute and storage usage.

Rockset is built to be a cloud-only database and does not have a self-managed option. It disaggregates compute from both hot storage and cloud storage, allowing multiple isolated compute clusters to run on the same shared data.


ClickHouse vs Rockset Ingestion

Ingestion
ClickHouse
Rockset
Data sources
• Core integrations for ingestion from Kafka, S3, Google Cloud Storage • Other partner and community integrations available
Managed data connectors to: • Events streams (e.g. Kafka, Kinesis) • Database CDC (e.g. MongoDB, DynamoDB, MySQL, PostgreSQL) • Data lakes (e.g. S3, Google Cloud Storage)
Semi structured data
• JSON Object type for handling nested JSON • Automatically infers schema from a subset of rows
• Ingests JSON and XML without a predefined schema • Ingests nested data
Transformations and rollups
Yes - several storage engines can pre-aggregate data
Yes - using SQL ingest transformations

ClickHouse has core integrations from common sources such as Kafka and S3. It recently introduced greater ability to handle semi-structured data using the JSON Object type and automatic schema inference.

Rockset has built-in connectors that manage streaming ingestion from common data sources. It has native support for semi-structured data, so that nested JSON and XML can be ingested and queried as is.

ClickHouse vs Rockset Performance

Performance
ClickHouse
Rockset
Updates
• Writes to immutable files • Updates rewrite and merge data files asynchronously • Frequent updates are not recommended due to potential for large rewrites
Documents are mutable and can be updated at the field level
Indexing
• Primary indexes use sparse indexing on data ordered by primary key • Secondary data skipping indexes
• Converged Index (row, columnar and inverted index) built on all data by default • All queries are resolved through the index
Query latency
Sub-100ms to seconds, optimized for large-scale aggregations
50-1000ms queries on 100s of TB
Storage format
• Column-oriented • Heavily compressed to minimize storage footprint
Converged Index, comprising a rowstore, columnstore and inverted index
Streaming ingest
Recommends inserting in batches of >1000 rows and <1 insert per second
• Ingests on a per-record basis • Data latency is typically 1-2 seconds

ClickHouse leverages column orientation and heavy compression for better performance on analytics workloads. It also uses indexing to accelerate queries as well. While ClickHouse use cases often involve streaming data from Kafka, batching data is recommended for efficient ingestion.

Rockset is designed to make streaming data queryable as quickly as possible by avoiding the need to batch data. It also updates documents efficiently by only reindexing fields that are part of an update request. Rockset indexes all data by default, which results in storage amplification but also enables low-latency queries that require less compute.


ClickHouse vs Rockset Queries

Queries
ClickHouse
Rockset
Joins
Yes
Yes
Query language
SQL
SQL - with extensions for nested data
Developer tooling
• API for querying SQL via POST command • Python, Java, Node.js and Go language clients
• Data APIs - saved SQL queries executed via REST endpoint • Python, Java, Node.js and Go SDKs • UDFs
Visualization tools
Integrations with Metabase, Superset, Grafana, Tableau, Deepnote and Rocket BI
Integrations with Tableau, Looker, Grafana, Superset, Power BI, Retoolwhic

ClickHouse uses SQL for querying, with support for SQL joins. ClickHouse integrates with some common tools for visual analytics, including Superset, Grafana and Tableau.

Rockset supports SQL as its native query language and can perform SQL joins. Users can create data APIs by storing SQL queries in Rockset that are executed from dedicated REST endpoints. Rockset integrates with some common visualization tools, but BI is not Rockset’s primary use case.


ClickHouse vs Rockset Scalability

Scalability
ClickHouse
Rockset
Vertical scaling
Scale up single-node ClickHouse for vertical scaling
Resize compute clusters (Virtual Instances) via API or in the console
Horizontal scaling
• Compute and storage scaled in lockstep • Data rebalanced to populate newly added nodes • Cloud offerings automate some of the scaling and rebalancing effort
• Add or remove compute clusters (Virtual Instances) via API or in the console • Scale out compute clusters for higher concurrency • Use separate compute clusters to isolate ingest from query or for multiple isolated applications • No rebalancing required

ClickHouse can be used in both single-node and distributed modes. Tight coupling of compute and storage and the need to rebalance data make scaling out more complex, but cloud versions of ClickHouse help automate this process.

Rockset Virtual Instances are distributed compute clusters that can be scaled up for faster queries or scaled out for practically unlimited concurrency or if compute isolation is needed. Rockset has shared storage that scales automatically and independently, so no rebalancing is required.