Databases · head to head
DuckDB vs Trino

DuckDB
Databases
MIT-licensed analytical SQL database that runs inside your process, with no server, no dependencies and one writer at a time.
- From
- Free
- Free plan
- Yes

Trino
Databases
A distributed SQL engine that queries data where it already lives, across object storage, warehouses and operational databases.
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only DuckDB lists vectorised columnar engine; only Trino lists connector architecture.
How do DuckDB and Trino differ?
DuckDB and Trino differ on platforms. Only the attributes on which DuckDB and Trino actually diverge.
Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes), category (Databases), founded (2019).
Which features does each one have?
They share no listed features; 10 appear only for DuckDB and 8 only for Trino. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in DuckDB
- In-process execution
- Vectorised columnar engine
- Direct file querying
- Zero dependencies
- Larger-than-memory queries
- MIT licence
- Postgres-flavoured SQL
- Extension ecosystem
Only in Trino
- Federated querying
- Connector architecture
- Predicate and aggregation pushdown
- Massively parallel execution
- Fault-tolerant execution
- Resource groups
- Iceberg and Delta table support
- Standard client protocols
What is each one used for?
The jobs each tool is most often brought in to do.
DuckDB
- Transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single processnot Trino
- Analytical queries embedded in an application or a dashboard where shipping a database server alongside it is not acceptablenot Trino
- Local exploration of files that are too large for a pandas dataframe but far too small to justify a warehousenot Trino
- Continuous integration and testing of analytical SQL, where a real engine can run in the test process without provisioning anythingnot Trino
Trino
- Ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline firstnot DuckDB
- Serving a BI tool a single SQL endpoint over an estate that is actually several separate storage systemsnot DuckDB
- Querying Iceberg or Delta tables on object storage interactively, as the compute layer of a lakehousenot DuckDB
- Investigating whether a dataset is worth ingesting, by querying it in place before committing to a pipeline for itnot DuckDB
Where do DuckDB and Trino fall short?
Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
DuckDB
- A database file accepts one read-write process at a time; other processes must open it read-only and will not see subsequent writes, so DuckDB cannot be the shared database behind several services
- There is no network protocol, authentication or user management, so exposing it to remote clients means writing and securing your own service around it
- It is built for scans and aggregations, not for many small transactions, so a workload of high-frequency single-row inserts and updates performs badly compared with SQLite or Postgres
- Storage files are backwards compatible but not forwards compatible, so a file written by a newer version cannot be read by an older one and every consumer of a shared file must be upgraded together
- Query memory settings matter: some operations still need to hold significant state, so an under-configured memory limit turns a large join or a high-cardinality aggregation into a spill-heavy query or an out-of-memory failure rather than a slow success
Trino
- Trino stores nothing and computes no statistics of its own, so the plan it produces is only as good as the partitioning, file sizes and table statistics on the source; a Hive table of thousands of small files or a lake with no stats produces a slow query the engine cannot improve
- Federated queries pull data out of the systems they touch, so a join between a lake table and a production Postgres can put a full table scan onto an OLTP database that other applications depend on, and the person who wrote the query will not see the incident it causes
- Releases come roughly every one to two weeks with no community long-term support line, and deprecations arrive quickly, so you either dedicate someone to keeping current or you buy Starburst Enterprise for a supported long-term version
- It is memory-based and disk spilling was deprecated in favour of fault-tolerant execution, so a query exceeding cluster memory fails outright rather than degrading; enabling fault-tolerant execution requires an external exchange store on object storage and makes queries measurably slower
- It is a query engine and not a warehouse: there is no built-in job scheduling, no incremental materialised view maintenance and no transformation framework, so producing curated tables still needs dbt or an equivalent layer that somebody has to own
- The 2020 fork split the ecosystem, so documentation, connectors, Stack Overflow answers and vendor material written before then describe PrestoDB, which is now a different project with different behaviour, and following the wrong one wastes real time
How much do DuckDB and Trino cost?
DuckDB is free to use; Trino is free to use. Plan by plan below, from each vendor's own pricing page.
DuckDB
Free- Open source (MIT licence)Free
Trino
Free- Open source (Apache License)Free
Which should you pick?
Choose DuckDB if
- You need in-process execution.
- You want to start without paying.
- You work on Linux, macOS, Windows, Web.
- You also want vectorised columnar engine.
Choose Trino if
- You need federated querying.
- You want to start without paying.
- You also want connector architecture.
Questions people ask
- Is DuckDB or Trino better?
- It depends on the job. DuckDB fits transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single process; Trino fits ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline first. DuckDB starts at Free and Trino at Free.
- Which is cheaper, DuckDB or Trino?
- DuckDB starts at Free and Trino at Free.
- Does DuckDB or Trino run on more platforms?
- DuckDB runs on Linux, macOS, Windows, Web. Trino runs on Web.
- Can I use DuckDB for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is DuckDB best used for?
- DuckDB is most often used for transformation steps in a data pipeline that would otherwise need spark, replaced by sql over parquet in a single process, analytical queries embedded in an application or a dashboard where shipping a database server alongside it is not acceptable, local exploration of files that are too large for a pandas dataframe but far too small to justify a warehouse, continuous integration and testing of analytical sql, where a real engine can run in the test process without provisioning anything. Of those, transformation steps in a data pipeline that would otherwise need spark, replaced by sql over parquet in a single process and analytical queries embedded in an application or a dashboard where shipping a database server alongside it is not acceptable are not what Trino is typically brought in for.
- What can DuckDB do that Trino cannot?
- DuckDB covers In-process execution, Vectorised columnar engine, Direct file querying, Zero dependencies. Trino covers Federated querying, Connector architecture, Predicate and aggregation pushdown, Massively parallel execution.
Answered from the vendors’ own pages
DuckDB: Can multiple applications share one DuckDB database?
Not for writing. One process holds the database read-write; others may attach read-only and will not see later writes. Shared multi-writer access needs a different database or a table format with a catalogue.
Trino: What is the difference between Trino and Presto?
They share an origin. The original creators left Meta and renamed their fork from PrestoSQL to Trino in December 2020; PrestoDB continues separately under the Linux Foundation. They have diverged in features, connectors and SQL behaviour, so material written for one may not apply to the other.
DuckDB: Is it a replacement for a data warehouse?
For single-node analytical workloads up to a few hundred gigabytes it very often is. It is not a replacement when many concurrent users need a shared, governed, always-on service.
Trino: Does Trino replace my data warehouse?
Not on its own. It is compute without storage, scheduling or transformation. Paired with Iceberg or Delta on object storage and something like dbt for modelling it can serve as a lakehouse; used alone it is a query layer over what you already have.
DuckDB: Do I have to load data into it?
No. It queries Parquet, CSV, JSON and Arrow in place, including on object storage. Its own storage format is optional and mainly useful when you want indexes, constraints and faster repeated access.
Trino: Why is my federated query slow?
Usually because a connector could not push a filter or aggregation down, so Trino is pulling whole tables across the network to join them itself. The fix is usually better source-side partitioning or statistics, or ingesting that source rather than federating it.
DuckDB: What is MotherDuck's relationship to it?
MotherDuck is a separate company offering a managed and hybrid service built on the DuckDB engine. DuckDB itself remains MIT-licensed and independent of it, with the IP held by the DuckDB Foundation.
Trino: What happens when a query runs out of memory?
It fails. Disk spilling was deprecated in favour of fault-tolerant execution, which checkpoints to an external exchange store such as S3 and lets long queries survive memory pressure and worker loss, at the cost of noticeably slower execution.
DuckDB: Is it suitable for OLTP?
No. It is designed for analytical scans. For transactional workloads with frequent small writes, SQLite or Postgres is the right tool.
Trino: Is there commercial support?
Yes, from Starburst, which offers Starburst Enterprise with long-term supported releases and Starburst Galaxy as a managed service. The open source project itself has no long-term support line.
Related pages
Other head to heads
- DuckDB vs ClickHouse
- DuckDB vs SingleStore
- DuckDB vs SQLite
- DuckDB vs MotherDuck
- DuckDB vs PostgreSQL
- DuckDB vs DBeaver
- DuckDB vs Apache Druid
- DuckDB vs StarRocks
- DuckDB vs OpenSearch
- DuckDB vs Firebolt
- DuckDB vs Redis
- DuckDB vs Oracle Database
- DuckDB vs Qdrant
- DuckDB vs Aiven
- DuckDB vs Apache Pinot
- DuckDB vs Apache Flink
- DuckDB vs Apache Pulsar
- DuckDB vs Cassandra
- DuckDB vs Dremio
- DuckDB vs Presto
- DuckDB vs Apache Hadoop
- DuckDB vs Apache Spark
- DuckDB vs Turso
- DuckDB vs Readyset
- DuckDB vs BigQuery
- DuckDB vs Apache Doris
- DuckDB vs RisingWave
- DuckDB vs LanceDB
- DuckDB vs Redpanda
- DuckDB vs Upstash
- DuckDB vs Materialize
- DuckDB vs Valkey
- Trino vs ClickHouse
- Trino vs SingleStore
- Trino vs SQLite
- Trino vs MotherDuck
- Trino vs PostgreSQL
- Trino vs DBeaver
- Trino vs Apache Druid
- Trino vs StarRocks
- Trino vs OpenSearch
- Trino vs Firebolt
- Trino vs Redis
- Trino vs Oracle Database
- Trino vs Qdrant
- Trino vs Aiven
- Trino vs Apache Pinot
- Trino vs Apache Flink
- Trino vs Apache Pulsar
- Trino vs Cassandra
- Trino vs Dremio
- Trino vs Presto
- Trino vs Apache Hadoop
- Trino vs Apache Spark
- Trino vs Turso
- Trino vs Readyset
- Trino vs BigQuery
- Trino vs Apache Doris
- Trino vs RisingWave
- Trino vs LanceDB
- Trino vs Redpanda
- Trino vs Upstash
- Trino vs Materialize
- Trino vs Valkey
