ClickHouse vs StarRocks vs DuckDB: which fits your team?
DuckDB fits a team that wants analytics inside one application or one analyst's workflow, with no server to run. ClickHouse fits a team that will operate a shared analytical server for many users and steady ingest. StarRocks fits a team that needs a shared MPP database with MySQL-protocol access and the option to query lakehouse tables in place without importing them. For a team with all three on the shortlist, the choice turns on who will operate the platform and how many concurrent writers it must support.
DuckDB is the anchor here: an embedded analytical engine under the MIT License, with its intellectual property held by the DuckDB Foundation, that runs inside a host process, so there is no database server to install, patch or back up. ClickHouse is an Apache-2.0 server whose ReplicatedMergeTree tables are coordinated by ClickHouse Keeper, which replaces ZooKeeper, and it ships stable releases roughly monthly with LTS releases twice a year. StarRocks is Apache-2.0, describes itself as a Linux Foundation project, and speaks the MySQL protocol, running either shared-nothing, where backend nodes store and compute, or shared-data, where stateless compute nodes read object storage.
The operating question comes first. DuckDB asks one engineer or one application team to manage files, backups and the host process, which suits teams that already own the code that calls it. ClickHouse and StarRocks each add a server cluster with its own upgrade, backup and capacity work, so confirm you have a named owner for on-call and upgrades before choosing either. The writer question settles the rest: a DuckDB file in read-write mode accepts writes from one process, and writing from several processes needs the Quack remote protocol, in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog. Write down the expected number of concurrent writers and readers, then load-test that pattern on each candidate, including a restore test, since ClickHouse replication alone does not guard against human error.
Which workload and team each platform fits
This table matches common workloads and team shapes to the platform that fits them, along with the condition that makes each fit hold. Read the Why column first, since each entry names the point where a different platform becomes the better choice. The main takeaway is that DuckDB fits single-machine work with no server, while ClickHouse and StarRocks fit shared servers that a team must operate.
| Scenario | Best fit | Why |
|---|---|---|
| One analyst or small data team working on CSV or Parquet files | DuckDB | Queries CSV and Parquet by file name, no server to run. Holds while one process writes; several concurrent writers fit ClickHouse or StarRocks better. |
| Shared analytics server with many users and frequent bulk loads | ClickHouse | Column-oriented server suited to many users running aggregations. Holds if you can run Keeper and backups; StarRocks fits MySQL-client serving better. |
| MySQL-compatible serving with BI tools already on MySQL clients | StarRocks | Speaks MySQL protocol so existing MySQL clients and BI tools can connect. Holds for shared SQL serving; one analyst on files fits DuckDB better. |
| Querying Iceberg, Delta, Hive or Hudi tables in place | StarRocks | Reads Hive, Iceberg, Delta and Hudi tables without importing them. Holds when several teams query the lake; single-user reads may suit DuckDB. |
| A team with no database operations staff | DuckDB for one or two people; a managed service for shared use | DuckDB has no server to patch. Shared use with no operators points to a managed service; self-hosted ClickHouse or StarRocks needs upgrade owners. |
How data and queries flow in each architecture
Each path starts where the query enters. In DuckDB, the query runs inside the host application's process and reads Parquet, CSV or open table format files in place, so the only network crossing is to remote storage. In ClickHouse, a ReplicatedMergeTree replica serves the query and uses ClickHouse Keeper for coordination, while BACKUP writes copies to local disk, S3-compatible storage or Azure Blob Storage. In StarRocks, frontend nodes plan queries and assign work to compute nodes, which read object storage in shared-data mode. Check where each storage target sits relative to your network boundary, because a remote target is where data leaves your control.
Query and data paths for DuckDB, ClickHouse and StarRocks, with storage trust boundaries marked.
How ClickHouse vs StarRocks vs DuckDB compare on documented capability
This table compares ClickHouse, StarRocks and DuckDB on license, release line, deployment, concurrent writes, replication, backup, lakehouse access, MySQL compatibility, upserts and extensions. Cells that say to confirm mark points the vendor documentation should settle, so verify them before you shortlist a platform. The main takeaway: ClickHouse and StarRocks are servers you operate, while DuckDB embeds in a host process and suits single-host analytics with fewer moving parts.
| Capability | ClickHouse | StarRocks | DuckDB |
|---|---|---|---|
| License and latest release | Apache-2.0. Latest stable 26.9 (v26.9.20.23-stable), with 26.8 as the LTS line. | Apache-2.0, Linux Foundation project. Release 4.1.3, September 17, 2026. | MIT, held by the DuckDB Foundation. Release v1.5.6, September 28, 2026. |
| Deployment model | Self-run server. ClickHouse Cloud is the managed option from ClickHouse Inc. | Frontend and backend nodes shared-nothing, or stateless compute nodes over object storage. | Embedded in a host process. No server to install, update or maintain. |
| Concurrent writers | Confirm write concurrency and insert behavior with ClickHouse for your ingest pattern. | Confirm concurrent load behavior with StarRocks for your ingest pattern. | One read-write process with several writer threads. Multi-process writes need the Quack protocol (beta as of v1.5.2) or DuckLake. |
| Replication | ReplicatedMergeTree tables coordinated by ClickHouse Keeper, with at least three Keeper nodes recommended. | Confirm replica and high availability options for shared-nothing and shared-data modes. | Confirm with DuckDB whether any replication option fits your design. |
| Backup and restore | BACKUP and RESTORE for full and incremental backups to disk, S3-compatible or Azure Blob storage. | Confirm backup and restore tooling with StarRocks for your storage mode. | Confirm the backup approach for database files with DuckDB before production use. |
| Lakehouse table access | Confirm native lakehouse table support with ClickHouse for your table formats. | Queries Hive, Iceberg, Delta Lake and Hudi tables in place, without importing them. | Iceberg, Delta and DuckLake extensions, most at the best-effort support tier. |
| MySQL protocol compatibility | Confirm protocol compatibility with ClickHouse before connecting MySQL-only BI tools. | Compatible with the MySQL protocol, so MySQL clients and BI tools can connect. | No server to connect to. The mysql extension reads and writes MySQL databases. |
| Primary key upserts and deletes | Confirm upsert and delete behavior with ClickHouse for your table engine. | Primary key model supports upserts and deletes. | Confirm upsert syntax with DuckDB. Write conflicts occur only when two threads change the same row. |
| Extensions | Confirm the extension and plugin model in the ClickHouse docs, including external authenticators. | Materialized views and resource management are built in. Confirm third-party extension options. | Core extensions include postgres, mysql, sqlite, iceberg, delta, ducklake, httpfs and vss. |
Why DuckDB's embedded model changes who runs it
DuckDB changes who runs the database because it has no server of its own. It is embedded in a host process, such as a Python script or a Java service, so there is no database server to install, update or patch. The team that owns the host application owns the engine too. ClickHouse and StarRocks work differently. Each runs as a multi-node cluster with its own metadata and replication layer: ClickHouse coordinates replicated tables through ClickHouse Keeper, and StarRocks runs frontend nodes for metadata and query planning beside the nodes that store or compute data. A platform team must operate those layers. The embedded model is a strength when one team owns the workload, the data fits on a machine that team can patch and back up, and most writes are bulk appends.
The concurrency rules decide whether that holds. In read-write mode, one process can read and write a DuckDB database file. Other processes can open the same file only in READ_ONLY mode, and while they do, they can only read. Inside one process, DuckDB supports multiple writer threads that update separate tables or separate subsets of the same table. A write fails with a conflict error only when two threads change the same row at the same time. Writes from several processes need either the Quack remote protocol, which was in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog database. Confirm the current status of Quack before you design around it, and treat the PostgreSQL catalog as a database you back up and patch. If several services must write independently, the server model is the simpler fit.
A server platform is the safer choice when several independent services or teams write to the same data, when each user or service needs its own access controls, or when the database must stay a shared service that others operate. Those are operating jobs you take on with a cluster. ClickHouse replicas resynchronize missing data automatically after recovery, but its backup documentation notes that replication alone does not protect against human error or corruption, so schedule BACKUP and RESTORE either way. Before choosing, answer three questions: which processes write, who will patch the host, and who is paged when a node fails. Check the supported versions in the ClickHouse security policy before you pick a release line.
What each license allows and what is sold separately
The ClickHouse server is open source under the Apache License 2.0, according to the project's GitHub repository. You can run, modify and redistribute that server code in your own cloud account, data center or air-gapped network without a license charge for the software. ClickHouse Inc. sells ClickHouse Cloud separately as a managed service, so a hosted deployment is a different contract with its own data path and terms.
- Self-hosted server: The Apache-2.0 terms cover the server you operate inside your own infrastructure, so the license itself adds no fee to a self-hosted cluster.
- ClickHouse Cloud: Managed hosting is a recurring agreement with ClickHouse Inc. Review where data is processed and who operates the service before you compare it with self-hosting.
- Support terms: Vendor support for self-hosted servers is a separate purchase. Confirm with ClickHouse Inc. which response commitments, escalation paths and upgrade help it covers.
- Release lines: Stable releases ship roughly monthly and LTS releases twice a year, with each LTS line supported for a year. Your upgrade work, and any support you buy, depend on the line you run.
- Redistribution duties: Apache-2.0 requires you to keep notices and follow its attribution terms if you ship ClickHouse inside your own product. Permissive licenses do not remove the need to review those obligations with counsel.
Before budgeting, ask counsel to confirm the Apache-2.0 obligations for your use, and ask ClickHouse Inc. in writing which support and cloud terms apply to your deployment.
StarRocks is licensed under the Apache License 2.0, and its GitHub README describes the project as a Linux Foundation project. The license lets you run and modify the server inside your own infrastructure, and the project sits under foundation governance. Foundation governance answers who steers the project, but it does not answer who sells commercial editions or support, so those points need separate confirmation.
- Apache-2.0 terms: You can use and modify the code in your own environment. Notice and attribution duties apply when you redistribute it or ship it inside a product.
- Linux Foundation status: Ask what the project's foundation governance means for contribution terms, trademark use and continuity of maintainers in your planning.
- Commercial editions: Do not assume a paid edition exists. Confirm with the vendor whether a commercial edition, managed service or support contract is offered, and what each one covers.
- Release line: The 4.1.3 release was published on September 17, 2026. Ask the vendor for its upgrade and support policy for the release line you plan to run.
- Storage costs: Shared-data deployments, supported from version 3.0 according to the README, keep data in object storage. Those storage bills come from your storage provider, not from the license.
Support terms are a separate purchase, so confirm them in writing. Permissive licenses do not remove the need to review obligations with counsel, so ask counsel to review the Apache-2.0 duties before you host StarRocks for other teams or ship it in a product.
DuckDB is released under the MIT License, and the DuckDB Foundation holds the project's intellectual property, according to the Why DuckDB page. MIT is a short, permissive license, so you can use, copy and embed DuckDB in commercial software if you keep the copyright and license notice. Because DuckDB runs inside a host process, the license cost question usually centers on the work around the engine, such as the extensions you use and the support you buy.
- MIT terms: Keep the copyright and license notice in copies or substantial portions you distribute. Permissive licenses do not remove the need to review those obligations with counsel.
- Foundation ownership: The DuckDB Foundation holds the intellectual property. Ask counsel how that ownership fits your contribution and trademark questions.
- Core extensions: Extensions such as postgres, iceberg and httpfs carry their own support tiers, and most sit at the secondary, best-effort tier. Check each extension you depend on before you commit to it.
- Support terms: The MIT license includes no vendor support. Support is a separate purchase, so confirm in writing whether the foundation or another party offers paid support and what it covers.
- Version pacing: The v1.5.6 release was published on September 28, 2026. Test the version you plan to pin, and review changes before each upgrade.
Before budgeting, confirm the support arrangement in writing, and have counsel review the MIT notice duties and the terms of each extension you use before you embed DuckDB in a shipped product.
What drives the running cost of each platform
Running cost in these three platforms comes from different places. A ClickHouse or StarRocks cluster pays for servers that stay on, while DuckDB moves most of the cost into one host and the code around it. Use each card to separate what you pay once from what recurs, and ask for every line item in writing.
ClickHouse replicas and Keeper hosts
ClickHouse replicates tables with ReplicatedMergeTree, coordinated by ClickHouse Keeper. The replication guide recommends at least three Keeper nodes on dedicated hosts in production, about 4 GB of RAM each, so those hosts and every replica recur as running cost. Backup storage is a second recurring line: BACKUP and RESTORE write to local disk, S3-compatible storage or Azure Blob Storage, because replication does not protect against human error. Upgrade testing against representative data is mostly one-time setup, then recurs with each release. Ask for replica count, Keeper sizing, backup retention and who runs upgrades.
Replication docsStarRocks frontend, compute and cache
StarRocks runs frontend (FE) nodes for metadata, query planning and scheduling, plus either backend (BE) nodes that store and compute, or stateless compute nodes (CNs) in shared-data mode. In shared-data mode the data lives in object storage such as AWS S3, Google GCS, Azure Blob Storage or MinIO, so request and storage charges recur. Cache sizing sets both speed and cost: hot data stays in memory and local disk, while cold data loads from object storage into the local cache. Ask for FE and BE or CN counts, cache capacity and object storage request and egress charges.
StarRocks architectureDuckDB host and pipeline code
DuckDB is embedded in a host process, so there is no database server to install or patch. Its cost sits in one host sized for both data and queries, the storage holding database and Parquet files, and the pipeline code that loads, schedules and tests them. Host and storage recur, while the pipeline is largely a one-time build that then needs upkeep as sources change. Read-write mode allows one process to write, so high availability needs a separate design with its own cost. Ask who maintains the pipeline code, what host size and storage the quote assumes, and how a second host would be provisioned.
Why DuckDBStaff, upgrades and recovery testing
Staff time is the cost all three share, and it recurs with every upgrade, monitoring alert and recovery test. ClickHouse ships stable releases roughly monthly and LTS releases twice a year, each LTS supported for a year, so an upgrade routine is a standing commitment. StarRocks and DuckDB also release new versions, so confirm each support window before setting a schedule. Monitoring setup and the first restore drill are one-time work, while on-call, upgrades and repeat recovery tests recur. Ask who is on call, how often restore tests run and which monitoring tools the quote includes.
How to run a ClickHouse vs StarRocks vs DuckDB pilot on your own data
This sequence turns the comparison into evidence from your own workloads: a scoped test set, measured results on each candidate, and a handover record that your platform, security and data teams can review before any production decision. Each step names the client-side owner, so the pilot ends with a decision your teams can defend in review.
Define workloads, sources and success measures
Write down the queries, dashboards and data loads the platform must serve, the sources they read (files, object storage, operational databases or lakehouse tables) and the latency and freshness targets that matter. Data engineering leads this with the analytics owners, and security confirms which data classes may enter the pilot. Done when the team has a written workload list with row volumes, expected concurrency and the query set each candidate must run, signed off by the data owner.
Load representative data and run candidate queries
Load a representative slice of your data into ClickHouse, StarRocks and DuckDB from the same source files or tables, then run the workload queries on comparable hardware at the expected concurrency. ClickHouse's production guidance recommends a pre-production environment with representative data and queries, so the test should mirror the production shape. Data engineers run the loads and the analytics owners compare each candidate's results against a reference output. Done when every candidate returns matching results for the agreed queries and the team has recorded timings, memory use and the queries that failed or ran slowly on each platform.
Test identity, access and audit controls
Check how each platform authenticates users and limits what they can read and change. For ClickHouse, test external authenticators and access control with roles and grants. For StarRocks, test its user management and privilege grants. For DuckDB, confirm with the vendor documentation which controls come from the host process and which come from file permissions on the database file, since it has no separate server login. The identity team and security team run these tests with accounts from your directory. Done when each candidate has a written mapping from your groups to database privileges and a denied-access test has been recorded for each role.
Design backup and restore for each candidate
Treat the restore test as the proof that a backup works. ClickHouse BACKUP and RESTORE support full and incremental backups of tables, partitions or databases to local disk, S3-compatible storage or Azure Blob Storage. Its documentation notes that replication alone does not protect against human error or corruption, so the backup target must sit apart from the replicas. Confirm the equivalent method for StarRocks and DuckDB in your deployment model. The infrastructure team runs the restore and the data owner checks row counts and sample queries. Done when a restored copy has been queried successfully in a separate environment and the restore runbook is written with the measured steps.
Set an upgrade policy that reads changelogs first
Decide which release line each platform will run and how upgrades are tested. ClickHouse ships stable releases roughly monthly and LTS releases twice a year, supports each LTS release for a year, and its FAQ advises reading the changelog first because minor backward-incompatible changes can occur. Its security policy lists 26.9, 26.8, 26.7 and 26.3 as supported, so confirm the line you choose is on that list. StarRocks and DuckDB need an equivalent written policy for their release cadence and advisories. The platform lead owns the policy and the change board approves it. Done when a rehearsal upgrade from the previous version to the candidate version has run on the pilot environment and every changelog item affecting your queries is logged with an owner.
Write the handover document
Record what the pilot showed and what the team will run. Include the workload list, results per candidate, the identity mapping, the backup and restore runbook, the upgrade policy and the open items, such as any control you could not confirm in vendor documentation. Note the exact versions tested, for example ClickHouse 26.8 LTS or 26.9 stable, StarRocks 4.1.3 and DuckDB v1.5.6, and recheck the current release before any decision. Platform engineering writes it, and the data, security and operations owners sign it. Done when every open item has a named owner and the decision owner accepts the document in writing.
What buyers ask about effort, cost and skills before hiring help
Which of these three databases is cheapest to run in production?
DuckDB usually has the lowest standing cost, because it is embedded in a host process and there is no database server to install, update or maintain, as the Why DuckDB page describes. Its main costs are the machine that runs your queries and the engineering time that builds pipelines around it. ClickHouse and StarRocks are clusters, so they add nodes, storage, replication, backups and upgrade work that recur every month. The drivers that move the bill for all three are data volume, query concurrency, number of replicas, storage choice and how many staff hours go to operations. All three server projects are open source under permissive licenses, so the software itself carries no license fee, but ClickHouse Inc. sells ClickHouse Cloud as a separate managed service. Ask any quote to split infrastructure, one-time build work, recurring support and operator time, so the comparison is like for like.
Can our team run ClickHouse in production without outside help?
Yes, a team with Linux, networking and database operations skills can run it, but the work is more than installing one server. Replicated tables are coordinated by ClickHouse Keeper, and the replication guide recommends at least three Keeper nodes on dedicated hosts in production, with about 4 GB of RAM each. A recovered replica syncs missing data from a healthy one automatically, but replication alone does not protect against human error or corruption, so you also need a tested backup and restore routine using BACKUP and RESTORE. Plan for upgrades too: stable releases ship roughly monthly and LTS releases twice a year, and you should test on representative data and read the changelog before each upgrade. The key question is whether you have people for on-call duty, backup verification and regular upgrades. If you do not, scope outside help for the build and the handover, and make the runbook part of the deliverables.
Does DuckDB need a cluster to run analytics?
No. DuckDB runs inside a host process, so a single machine with enough memory and disk is the normal setup, and you do not operate a server. The limit that matters is writes. In read-write mode one process can read and write a database file, while in READ_ONLY mode several processes can read it but none can write. If several processes must write, the supported options are the Quack remote protocol, which was in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog database. Confirm the current status of Quack before you depend on it. Within one process, multiple writer threads are supported, and a conflict error appears only when two threads change the same row at the same time. Decide early whether your ingestion design needs multi-process writes, because that choice determines whether you need Quack or DuckLake.
How long does implementation take for ClickHouse, StarRocks or DuckDB?
The timeline depends on data volume, the number of source systems, the ingestion pipelines to build, the identity integration and how much of the schema must change for each engine. DuckDB often has the shortest path for workloads that fit one machine, because there is no cluster to size, replicate and back up. ClickHouse and StarRocks add cluster design and operating work on top of the build. At DeployOpen, most engagements are fixed-scope, and the scope, deliverables and timeline are agreed in writing before work starts. Ask for the timeline to list the sources, data volumes, query patterns and acceptance tests it assumes, so you can check those assumptions against your own environment. Any date given without those inputs should be treated as a placeholder until the written scope exists.
What does our team need to provide for an implementation project?
Three roles matter most: data owners, an identity team and a named operator. Data owners confirm which tables, fields and retention rules are in scope and who may see them. The identity team decides how users authenticate and which groups map to which roles. The external authenticators documentation is a starting point for that conversation for ClickHouse, and you should confirm what your chosen engine supports. A named operator owns the platform after handover, takes on-call duties, runs backups and approves upgrades. Without a named operator, the build can finish while nobody is able to run it. Also plan for access to source systems, a test environment with representative data and a named acceptance decision-maker. Write these responsibilities into the scope before work starts, so the client's obligations and the partner's deliverables both appear in the quote.
How hard is it to switch from one of these engines later?
Switching is easier at the storage layer than in the SQL and pipeline layers. Parquet, Iceberg and Delta are shared table formats, StarRocks can query Hive, Iceberg, Delta and Hudi data in place, and DuckDB has iceberg and delta extensions. Keeping data in open formats on object storage keeps the data portable. The main switching costs are SQL dialect differences in functions, types and DDL, the ingestion pipelines that write into each engine, and the dashboards and access rules tied to one engine's features. Engine-specific features such as StarRocks materialized views and primary key tables, or ClickHouse replication settings, must be rebuilt on the new platform. Confirm which table formats each engine can write as well as read, because read support and write support can differ.
How DeployOpen helps choose and implement one of these platforms
DeployOpen helps teams decide between ClickHouse, StarRocks and DuckDB, then plans, builds and hands over the one that fits. Each engagement is fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The work runs inside your own cloud accounts, data centers or air-gapped networks, so the data stays under your hosting and access controls.
How we scope
- The written scope records which engine is chosen and which workloads each candidate was judged against.
- Scope covers where ClickHouse, StarRocks or DuckDB will run: your cloud account, data center or air-gapped network.
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers.
How we build
- For ClickHouse, configuring ClickHouse Keeper on at least three dedicated nodes for replicated tables.
- For StarRocks, choosing a shared-nothing or shared-data layout and sizing frontend and compute nodes to match.
- For DuckDB, packaging the embedded database, its file layout and its write pattern into the host application.
How we hand over
- Runbooks for backup and restore, covering ClickHouse BACKUP and RESTORE, plus a tested restore for each engine.
- Documentation of access control, SSO and authentication settings so your security team can review them.
- Upgrade notes that follow each engine's release policy, such as ClickHouse stable and LTS lines and changelog review.
How we support
- Retainers cover ongoing support, upgrades and continuous testing of the chosen platform after handover.
- Security testing of the deployed database, its network paths and any APIs or BI tools that connect to it.
- Compliance readiness: DeployOpen prepares controls and evidence for your assessor, but does not issue audit reports.

