Trino vs DuckDB

Choose Trino when many users or tools need SQL over shared lakehouse tables and databases through a cluster. Choose DuckDB when one team or application needs fast analytics on files or a single database, with no server to run.

On this page

Trino vs DuckDB: when each one fits

Trino fits shared lakehouse tables and databases that many users and tools must query. DuckDB fits analysis by one team or one application over files and a single database. The choice turns on four questions. How many concurrent writers and readers will touch the same data? Where does the data live, in object storage behind an open table format or in files and a local database file? Can the team run and patch a coordinator and workers, or does it need an embedded library with no server to maintain? And which identity and access controls will auditors ask to see? Benchmark speed alone rarely settles the choice, because the query engine is only one part of a shared data platform.

Trino is Apache-2.0 licensed and runs as one coordinator plus workers. Its deployment documentation requires a 64-bit Linux system and a 64-bit Java 25 runtime, minimum 25.0.1. Trino does not store your data. It reads sources through connectors, and a lakehouse also needs separate object storage and a table catalog such as an Iceberg REST catalog, Hive Metastore or AWS Glue. Someone must own the Java runtime, the cluster footprint and each upgrade, so confirm that your team has that capacity. For access, Trino documents password file, LDAP, OAuth 2.0, Kerberos, certificates and JWT for authentication, and file-based access control, Apache Ranger or Open Policy Agent for authorization. Review the Trino security documentation with your auditors before you commit to a catalog and access design.

DuckDB is MIT licensed, held by the DuckDB Foundation, and embedded in a host process, so there is no database server to install or patch. It targets analytical queries over large portions of the data, and it reads CSV and Parquet files by naming them in the FROM clause. The constraint to test is concurrency. In read-write mode one process can write a database file, and READ_ONLY mode lets several processes read it. Several processes writing at once need either the Quack remote protocol, in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog database. Inside one process, writer threads conflict only when they change the same row. Before you choose DuckDB for a shared dataset, run your own concurrent write pattern in a test, and confirm with auditors what evidence they expect from the host application, since an embedded engine has no separate server login to show them.

Which scenario points to Trino and which to DuckDB

This table matches six common scenarios to the engine that fits each one better, with the reason and the condition that would reverse the choice. Read each row as a starting point, then confirm connector, catalog and write support in your own environment. The main takeaway is that DuckDB suits single-process work close to the data, while Trino suits shared, multi-source and centrally governed access.

ScenarioBetter fitWhyThe other option wins when
One analyst querying Parquet filesDuckDBNames the files in the FROM clause and runs in-process with no server to install or maintain.Many users need the same files through one shared endpoint, or the files sit in a shared lakehouse.
Shared Iceberg lakehouse on object storage used by BI tools and notebooksTrinoIceberg connector works with Glue, Hive Metastore, REST and Nessie catalogs and supports MERGE and time travel.The tables are small, one batch loader writes them and a single analyst reads them.
Federated queries across PostgreSQL, MySQL and SnowflakeTrinoTrino's 37 connectors include PostgreSQL, MySQL and Snowflake. The Snowflake connector queries an external account.All data sits in PostgreSQL or MySQL and one analyst joins it on a single workstation.
Application team embedding analytics in its own serviceDuckDBEmbeds in the host process with clients for Python, R, Java and Wasm, and nothing separate to run.Several services must write the same data at once, which needs DuckDB's Quack beta protocol or DuckLake. Confirm current status.
Long batch job that must survive a worker failureTrino (fault-tolerant execution)The TASK retry policy suits large batch queries but needs an exchange manager spooling to S3, Azure, GCS or HDFS.The job fits on one machine and a full rerun after a failure is acceptable.
Regulated team that needs central access controlTrinoAuthenticates through LDAP, OAuth 2.0, Kerberos or JWT and offers file-based access control, Apache Ranger or Open Policy Agent.The data is a small extract on one host and existing file permissions meet the assessor's expectations. Confirm this first.

How Trino's cluster and DuckDB's embedded engine change daily operations

Trino and DuckDB put operating work in different places. Trino is a cluster you run beside object storage and a table catalog, while DuckDB is an engine your application loads, so the on-call, upgrade and ownership questions below change with each choice.

Coordinator and workers on Linux

Trino runs as one coordinator plus workers on 64-bit Linux with a 64-bit Java 25 runtime, minimum 25.0.1. On call, a runtime that drifts from the supported patch level is an avoidable source of failed starts, so pin the JVM in your image or host build. Upgrades touch every node, so plan a rolling change and a fixed set of canary queries before cutover. The platform team owns the cluster, and the Trino administrator owns query behavior and access settings.

Trino deployment docs

Dedicated coordinator for larger clusters

The deployment docs recommend a dedicated coordinator for larger clusters, so the node that plans queries and tracks workers does not also run query tasks. On call, this isolates coordinator resource pressure from worker load and gives you a clean log stream to read first. Confirm where your cluster crosses that threshold with your own load tests, since the size at which the change pays off depends on your query mix. Document a restart procedure for the coordinator, because the cluster has one of them.

Kubernetes through Helm

Trino's docs include a guide to running it on Kubernetes with Helm, which moves scheduling, restarts and rolling changes into your cluster tooling. On call, the questions shift from host health to pod health, resource limits and the Helm chart values in use. Upgrades become chart and image version changes that your release pipeline should record. Ask the platform team whether it already runs Kubernetes in production, because this path assumes that skill set. The platform or SRE group typically owns the runtime, while the data team owns catalogs and queries.

Storage and table catalog are yours

Trino queries data where it lives through connectors and does not hold the lakehouse data itself. A Trino lakehouse therefore needs separate object storage and a table catalog such as an Iceberg REST catalog or Hive Metastore. On call, a catalog outage stops every query that depends on it, even when all Trino nodes are healthy, so monitor the catalog as its own service. Upgrades should be tested against the Iceberg connector and your catalog version together. The data platform team runs Trino, while storage and catalog owners run the other two services.

Iceberg connector docs

No database server in DuckDB

DuckDB runs embedded inside a host process, so there is no database server to install, update or maintain. On call, a failure usually appears as the host application crashing or stalling, which means your existing application logs and process monitoring carry the load. Upgrades follow the host application's release cycle, and the DuckDB version pinned in that application sets the engine. Backup is a file-level task you design yourself, so confirm how the database file is copied and restored. The team that owns the application owns DuckDB.

Why DuckDB

One writer process per file

In read-write mode, one process can read and write a DuckDB database file, while READ_ONLY mode lets several processes read it with none writing. Multiple writer threads inside that process are supported, and a conflict error appears only when two threads change the same row at the same time. Writing from several processes needs the Quack remote protocol, in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog database. On call, confirm how your jobs behave when a second process opens the file. The pipeline designer owns this constraint and should verify it before adoption.

DuckDB concurrency docs

How a query reaches data on each platform

The Trino path starts when a BI tool or client sends SQL to the coordinator, which dispatches work to the workers. Each worker reads table data through the Iceberg connector, which uses a catalog service for table metadata and object storage for data files. The DuckDB path starts inside your application or notebook, since DuckDB runs embedded in that process with no server to reach. It reads local CSV or Parquet files directly, or reaches object storage and table formats through the iceberg, delta or ducklake extensions. Check the edge marked as leaving the host process, because that is where network access, credentials and data residency controls apply.

Trino routes queries through a coordinator, while DuckDB reads data inside the host process.

Trino vs DuckDB capability by capability

This table compares Trino and DuckDB on nine capabilities that shape a data platform decision. Read each row as a question to answer for your own workload: Trino is a cluster you operate in front of data that stays in place, while DuckDB is an embedded engine that runs inside a process. Where a cell says to confirm, verify the behavior with the vendor and in your own environment before you commit.

CapabilityTrinoDuckDB
LicenseApache-2.0 licensed open-source distributed SQL query engine.MIT License, with intellectual property held by the DuckDB Foundation.
Deployment modelCluster of one coordinator plus workers on 64-bit Linux. Helm guide available for Kubernetes.Embedded in a host process, so there is no database server to install, update or maintain.
Sources reached37 connectors in the docs, including Iceberg, Delta Lake, PostgreSQL, Snowflake and BigQuery.Reads CSV and Parquet by file name. Core extensions cover PostgreSQL, MySQL, SQLite, S3 and HTTP(S) access.
Table formatsIceberg connector reads and writes Parquet, ORC and Avro. Iceberg format version 3 is experimental.Iceberg, Delta and DuckLake through table format extensions. Confirm read and write coverage for your version.
Multi-user writesIceberg tables support INSERT, UPDATE, DELETE and MERGE. Confirm write behavior for each connector you use.One process can write a database file. Several processes need the Quack protocol (beta as of v1.5.2) or DuckLake on PostgreSQL.
Fault-tolerant executionOff by default. QUERY or TASK retry policy, with TASK needing spooling to S3, Azure, GCS or HDFS.Runs inside your host process, so a crashed process ends the query. Confirm recovery options for long jobs.
Authentication and access controlPassword file, LDAP, OAuth 2.0, Kerberos, certificates or JWT. Access control is file-based, Apache Ranger or OPA. Confirm row-level rules.Confirm user authentication and row-level access control with the DuckDB project and test them in your environment.
ExtensibilityConnector-based, so check that each source you need has a connector before you design around it.Extensions for Postgres, MySQL, SQLite, httpfs and vector search. Most sit at the secondary, best-effort support tier.
Supported runtimesJava 25 runtime (minimum 25.0.1) on 64-bit Linux, run as a server cluster or on Kubernetes.Linux, macOS and Windows on x86 and ARM. Python, R, Java and Wasm clients, plus DuckDB-Wasm in browsers.

Trino vs DuckDB licenses: what Apache-2.0 and MIT allow

Trino is licensed under Apache-2.0, a permissive license that allows you to run, modify and redistribute the engine inside your own infrastructure. The license text sets those rights, so your legal team can review them directly against the release you deploy. The project describes itself as a fast distributed SQL query engine for big data analytics, formerly known as PrestoSQL, and its recent release sequence affects how you plan upgrades.

  • License scope: Apache-2.0 sets the terms for use and redistribution of the open-source engine. It does not include vendor support, upgrades or hardening work.
  • Release sequence: Release 482 shipped on June 25, 2026, 483 on July 17, 2026 and 484 on October 15, 2026. Read the Trino release notes for each version before you schedule an upgrade.
  • Upgrade spacing: The gap between 483 and 484 is much longer than the gap between 482 and 483, so set upgrade windows from each version's notes.
  • Redistribution: If you embed Trino in a product or distribute a modified build, confirm with counsel which notices and attribution the Apache-2.0 terms require for that build.
  • Support boundary: The license does not decide who patches, tests and supports your cluster. That work belongs in your staffing plan or in a separate contract.

Before you adopt a version, confirm the license terms and the upgrade notes for that exact release with your legal and platform teams.

What drives the running cost of Trino and DuckDB

Both engines are open source, so license fees rarely decide running cost. The difference lies in what your team must operate around each engine: a Trino cluster with storage and a catalog, or an embedded library inside an application host you already run. The cards below cover infrastructure, skills, support, upgrades, cost timing and what to request in a quote.

Infrastructure footprint

A Trino lakehouse runs a coordinator and workers, separate object storage for table files, and a table catalog such as an Iceberg REST catalog or Hive Metastore. Each part is compute or storage you size, pay for and monitor. DuckDB runs embedded in a host process on machines the team already operates, so there is no database server to install or patch. Check whether your hosts can carry the workload, and whether your queries are long reads over large data or many concurrent writers, because DuckDB's single-file write model limits multi-process writes. See the Why DuckDB page for the embedded model.

Why DuckDB page

Staffing skills for each engine

Trino needs people who can run a distributed cluster, manage catalog connections and set cluster, catalog and access control work that recurs for as long as users query the platform. Access control can be file-based, handled through Apache Ranger or run through Open Policy Agent, and each option needs its own owner. DuckDB moves the work into data engineering inside the host application: packaging, file layout, scheduling and extension loading. Count the roles you must fill from your own staff, and confirm who will own access control after handover.

Support terms and paid tiers

Do not assume a paid support contract exists for either engine until you see one in writing. Ask any vendor or partner for written support terms that name response expectations, the versions covered, the scope of patches and who answers when a production query fails. For DuckDB, most core extensions sit at a secondary, best-effort support tier, so confirm what you can depend on for formats such as Iceberg or Delta before you build a dependency on them.

Upgrade testing and version pinning

Trino ships often: according to the Trino release notes, releases 482, 483 and 484 came out between June 25 and October 15, 2026. Each upgrade therefore needs cluster upgrade testing across every connector and catalog you run, plus a tested rollback path. DuckDB has less infrastructure to upgrade, but an application that embeds it should pin the version it tested. DuckDB v1.5.6 was published on September 28, 2026, so pin, retest extensions and then move. Ask who owns extension compatibility when a core extension changes.

Trino release notes

One-time and recurring costs

One-time costs include design, initial deployment, catalog and access control setup, identity provider integration and acceptance testing. Recurring costs include compute and storage for a Trino cluster, staff time for patching and upgrades, and retesting after each release. DuckDB removes the cluster from the recurring list, but the host application, its scheduling and its data storage still recur. Ask for each recurring work item to be listed separately, with the party that pays for it and what drives it up, such as data volume, concurrency or the number of catalogs.

What to ask for in a quote

Ask for a fixed scope agreed in writing before work starts, with the platforms, versions, connectors and environments named. List each deliverable by name, such as the deployed cluster or embedded application, catalog configuration, runbook and handover notes. Split responsibilities in writing: who operates Trino or DuckDB, who patches the host, and who owns access control after handover. Require written acceptance tests with pass criteria, such as a query benchmark on agreed data and a failed-login check, so completion can be judged on evidence.

Moving workloads from DuckDB to Trino, or back

This sequence moves a workload between an embedded DuckDB setup and a Trino lakehouse. SQL logic, schemas and open table formats carry over, while application code, file paths, user access and dashboards are rebuilt. The result is a cutover that you have checked against both engines, in either direction.

  1. Inventory queries, tables, file paths and users

    Start by listing every DuckDB database file, every query, and each application that embeds DuckDB. Add every CSV or Parquet path named in a FROM clause, plus each person and service account that reads or writes data. Data engineering owns the list, and the security team reviews the user entries. The step is done when each item has an owner, a target engine and a label: SQL logic, table, file path, user or client connection. Anything that lives only in application code goes on the rebuild list.

  2. Choose open table formats and a catalog

    Decide which tables both engines must read. Where DuckDB and Trino share data, use an open table format that both can read, such as Iceberg, which DuckDB reads through its iceberg extension and Trino through its Iceberg connector. Trino also needs a catalog to find tables in object storage, such as Hive Metastore, AWS Glue or an Iceberg REST catalog. Tables used only inside one DuckDB file need neither. The output is a table map with format, catalog and owner for each table. Confirm the supported catalog types and the extension support tier in the vendor docs before committing.

  3. Export tables to object storage

    Write each table to object storage in the chosen open format, with table metadata registered in the catalog from the previous step. Do not assume Trino reads a .duckdb file directly. Confirm the export path for each database file in the DuckDB docs, and check the Trino connector list for a matching connector before you start. Check each load against the source with row counts and sample checksums on key columns. The output is a bucket with every table in the table map and a load log where counts match the source for each table.

  4. Rebuild identity, access and connections

    Recreate who can do what in the target platform, because user accounts and grants do not move with the data. DuckDB has no separate server, so access comes from the host application and file permissions, and each one needs a deliberate mapping to the new policy. In Trino, choose an authentication method from the documented list, such as LDAP, OAuth 2.0, Kerberos or JWT, then pick file-based access control, Apache Ranger or Open Policy Agent. Repoint application connection strings and dashboard data sources. The step is done when a test user from each group gets the expected rows and a denied query fails for the right reason.

  5. Run both in parallel before cutover

    Run the same queries on DuckDB and Trino against the same source data, and compare results on aggregates, samples and edge cases such as nulls and time zones. Compare load patterns too: DuckDB targets large analytical queries and bulk appends, so test your write sizes and concurrent reads on Trino. Remember that a read-write DuckDB file opens in one process, while READ_ONLY mode lets several read it. Confirm each supported path in the vendor docs before you rely on it. Cut over only when results match and the load test passes. The output is a comparison report that lists each difference and how it was resolved.

Where Trino and DuckDB projects usually run long

Trino projects usually run long on catalog and identity work. Each connector reads data through a catalog entry, and an Iceberg lakehouse needs a table catalog such as Hive Metastore, AWS Glue, a JDBC or REST catalog, Nessie or Snowflake, along with object storage laid out for how the team owns and writes tables. Authentication can use a password file, LDAP, OAuth 2.0, Kerberos, certificates or JWT, and access control can be file-based, run through Apache Ranger or run through Open Policy Agent. Settle which identity provider and which access layer your governance team will own before the first catalog is created, because changing them later touches every query. Coordinator and worker setup is covered in the Trino deployment guide.

Fault-tolerant execution is the second decision, and teams often defer it until a long batch job fails halfway through. It is off by default. The QUERY retry policy reruns whole queries, while the TASK policy suits large batch queries but needs an exchange manager that spools intermediate data to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Size that spool storage and its cleanup during design, before the first failure. Performance tuning is the third piece, and it should start from your own queries, run on the cluster sizes you plan to use, against the Iceberg or Hive tables analysts actually query. Ask the implementer which changes they will measure, how they will repeat the test as data grows, and who signs off on the results.

DuckDB projects run long when a personal workflow has to become a shared governance model. Because DuckDB is embedded, concurrency follows the process model. In read-write mode one process can read and write a database file, and while several processes can read in READ_ONLY mode, none of them can write. Writing from several processes needs the Quack remote protocol, in beta as of DuckDB v1.5.2, or DuckLake with PostgreSQL as the catalog database. Make that choice, and decide who can read which files, before analysts start sharing .duckdb files on a network drive. Extensions add a second decision. Most core extensions sit at the secondary, best-effort support tier, and the motherduck extension is maintained by a third party. Pin extension versions, record each tier, and agree in advance who accepts the risk of an unsupported update. Ask for a timeline in the written scope, with the write design and extension policy as separate milestones.

What teams ask before choosing or hiring help for Trino or DuckDB

How much does it cost to run Trino or DuckDB yourself?

Neither engine has a license fee for the open-source edition, so the cost is the people and infrastructure around it. DuckDB runs inside your application or notebook process, so its main costs are the compute of the host machines, the storage holding your Parquet or database files, and the engineering time to build the pipelines that feed it. Trino adds a coordinator, worker nodes, a metastore or catalog service, object storage and the staff who operate the cluster, upgrade it on a regular release cycle and tune access control. Recurring costs grow with data volume, query concurrency and how many people depend on the service. Ask any partner to split one-time build work from recurring run work, and confirm whether your cloud, support contracts or managed services add charges outside that scope.

How long does a Trino deployment take to get running?

Timing depends mainly on scope, so ask for a milestone plan with dates agreed in writing before work starts. The biggest drivers are how many sources and catalogs Trino must reach, whether you deploy on Kubernetes with Helm or on virtual machines, and how much access control and identity integration sits in front of it. Lakehouse work adds the table format, catalog choice and data migration plan. If your batch jobs need fault-tolerant execution, the exchange manager and its object storage are another build step. Your own change control, security review and test cycles often set the calendar more than the installation does. Confirm which of these the quote covers and which stays with your team.

Can a small team run DuckDB without a dedicated platform engineer?

Often yes, for single-user or small analytical workloads, because DuckDB is embedded in a host process and has no database server to install, patch or back up separately. The work shifts to the code around it: the application or scheduled job that opens the file, how files are stored and versioned, backup of the database or Parquet files, and dependency updates for the client language. Your team still needs someone who owns those pieces, even if that person is an engineer with other duties. The answer changes once several services or people must write to the same data at the same time, or when you need central access control, audit logs and shared catalogs, because DuckDB then needs a design such as the Quack route or DuckLake. Confirm the expected number of writers, the owner for backups and the on-call path before deciding.

Does Trino need its own object store and table catalog before the first query?

It depends on what you query. Trino reaches databases and some existing data through connectors, such as PostgreSQL, MySQL or Snowflake, so a federated query can run with no lakehouse storage at all. A lakehouse is different. Trino queries data where it lives, so an Iceberg table needs object storage for its files and a catalog, such as an Iceberg REST catalog, Hive Metastore, AWS Glue or Nessie, to track table metadata before you can create or query it. Confirm which sources you must reach, which catalog your team already runs, and who owns the storage bucket, the catalog service and its permissions. The Trino Iceberg connector page lists the catalogs and write operations to check against your design.

Can DuckDB handle many concurrent writers, and what do Quack and DuckLake change?

Not from several processes writing one database file. In read-write mode one process can write, while READ_ONLY mode lets several processes read but none write. Inside one process, multiple writer threads can update separate tables or separate subsets of the same table, and a write fails with a conflict error only when two threads change the same row at the same time. For several processes or services writing together, DuckDB offers two routes, each with its own condition. The Quack remote protocol was in beta as of DuckDB v1.5.2, so check its current status and your support position before you depend on it. DuckLake, with PostgreSQL as the catalog database, adds a PostgreSQL service you must run, back up and secure. Test your write pattern, conflict handling and recovery steps against your own workload before choosing either route.

What should a partner put in a written quote for Trino or DuckDB work?

Ask for a quote that follows from a written scope, listing each deliverable, its environment and the acceptance test that closes it. Ask the partner to name the systems in scope, such as each Trino connector or DuckDB pipeline, and the identity, access control and audit logging they will configure. Ask which parts are one-time (design, build, migration, hardening, documentation) and which recur (upgrades, backups, monitoring, retainers for support or continuous testing). Ask who owns each task after handover, what a retest or change request costs, and what is excluded. At DeployOpen, most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and there is no published price list, so the quote follows from that written scope.

How DeployOpen helps choose, implement or migrate Trino or DuckDB

DeployOpen helps teams decide between Trino and DuckDB, then plans, builds, documents and supports the one they choose inside their own cloud accounts, data centers or air-gapped networks. Work starts with a written, fixed scope that names the workloads, data sources and access rules in play. Where a team needs both, we can scope the two as separate pieces of work.

How we scope

  • Written scope listing the query engine, catalogs, data sources and workloads covered in the Trino or DuckDB work.
  • Migration scope listing source systems, table formats, cutover steps and the fallback plan for the chosen engine.
  • Fixed scope agreed in writing before work starts, with ongoing support available as a retainer.

How we build

  • Catalog and storage design for Trino: Iceberg REST or Hive Metastore, object storage and table access.
  • Trino cluster deployment on 64-bit Linux with Java 25.0.1 or later, or Helm on Kubernetes.
  • DuckDB build for embedded use: host application, database file layout, and read-only or read-write access.

How we hand over

  • Documentation of configuration, access control, catalog connections and the operating runbook.
  • Access setup reviewed against Trino's authentication options: password file, LDAP, OAuth 2.0, Kerberos, certificates or JWT.
  • Evidence pack for your assessors covering settings, logs and the reasons for the chosen engine.

How we support

  • Retainers for upgrades, backups and continuous testing of the chosen Trino or DuckDB setup.
  • Upgrade planning that follows Trino release notes or DuckDB releases, tested in your environment first.
  • Security testing after changes to connectors, extensions or access rules, followed by a retest.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.