Databases · head to head
TiDB vs Trino

TiDB
Databases
Apache 2.0 distributed SQL database with MySQL wire compatibility and a separate columnar replica for analytical queries.
- 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
- Trino is free; TiDB starts at $250/mo.
- Only TiDB lists MySQL wire compatibility; only Trino lists federated querying.
How do TiDB and Trino differ?
TiDB and Trino differ on pricing model (Freemium against Open-source), platforms and year founded (2015 against 2019). Only the attributes on which TiDB and Trino actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Which features does each one have?
They share no listed features; 10 appear only for TiDB 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 TiDB
- MySQL wire compatibility
- Horizontal write scaling
- Distributed ACID transactions
- TiFlash columnar replica
- Automatic rebalancing
- Raft replication
- Apache 2.0 licence
- Online schema change
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.
TiDB
- A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Trino
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Trino
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Trino
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Trino
Trino
- Ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline firstnot TiDB
- Serving a BI tool a single SQL endpoint over an estate that is actually several separate storage systemsnot TiDB
- Querying Iceberg or Delta tables on object storage interactively, as the compute layer of a lakehousenot TiDB
- Investigating whether a dataset is worth ingesting, by querying it in place before committing to a pipeline for itnot TiDB
Where do TiDB and Trino fall short?
Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
TiDB
- A production cluster needs several placement driver, storage and SQL nodes before it is fault tolerant, so the minimum viable footprint is far larger than a MySQL server and TiDB is never the economical choice for a small database
- Every transaction takes a timestamp from the placement driver and crosses the network to storage nodes, so simple point queries are slower than on single-node MySQL and latency-sensitive paths need to be measured, not assumed
- MySQL compatibility is at the wire and dialect level but not complete; stored procedures, triggers and events are not supported, so an application that pushed logic into the database cannot simply be repointed
- The columnar replica is an extra full copy of the data on its own nodes, so hybrid analytics roughly doubles storage and adds hardware that must be sized and paid for separately
- Operating it well requires cluster-specific expertise in TiUP or the Kubernetes operator, region hot spots, and rebalancing behaviour, so the licence is free but the running cost includes an engineer who understands distributed storage
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 TiDB and Trino cost?
TiDB has a free plan, with paid plans from $250/mo; Trino is free to use. Plan by plan below, from each vendor's own pricing page.
TiDB
Free- ServerlessFree
- 5GB storage
- 50M request units
- Free forever tier
- Dedicated$250/mo
- Dedicated resources
- SLA guarantees
- Enterprise support
Trino
Free- Open source (Apache License)Free
Which should you pick?
Choose TiDB if
- You need mysql wire compatibility.
- You want to start without paying.
- You work on Web, AWS, Azure, Self-managed.
- You also want horizontal write scaling.
Choose Trino if
- You need federated querying.
- You want to start without paying.
- You also want connector architecture.
Questions people ask
- Is TiDB or Trino better?
- It depends on the job. TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer; Trino fits ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline first. TiDB starts at Free and Trino at Free.
- Which is cheaper, TiDB or Trino?
- TiDB starts at Free and Trino at Free.
- Does TiDB or Trino run on more platforms?
- TiDB runs on Web, AWS, Azure, Self-managed. Trino runs on Web.
- Can I use TiDB for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is TiDB best used for?
- TiDB is most often used for a mysql workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer, reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an etl pipeline, multi-region deployments needing a single logical database with automatic failover rather than manual primary promotion, migrating off a sharded mysql estate where the sharding logic in the application has become the main source of bugs and operational toil. Of those, a mysql workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer and reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an etl pipeline are not what Trino is typically brought in for.
- What can TiDB do that Trino cannot?
- TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica. Trino covers Federated querying, Connector architecture, Predicate and aggregation pushdown, Massively parallel execution.
Answered from the vendors’ own pages
TiDB: Is TiDB a drop-in replacement for MySQL?
At the protocol and dialect level it is close, and most applications connect unchanged. Stored procedures, triggers and events are not supported, and latency characteristics differ, so it needs testing rather than assumption.
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.
TiDB: What licence is it under?
Apache 2.0, for both TiDB and the underlying TiKV storage engine. TiKV is a graduated CNCF project, which is a meaningful governance signal in a market where several competitors moved to source-available licences.
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.
TiDB: Do I need TiFlash?
Only for analytical queries. It is an optional columnar replica; without it TiDB is a distributed transactional database. With it you get analytics on live data at the cost of an additional full copy.
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.
TiDB: Is the managed cloud the same software?
TiDB Cloud runs the same engine, with the control plane, scaling and operational tooling provided as a service. The entry tier is metered differently from a dedicated cluster, so the cost model rather than the engine is what changes.
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.
TiDB: When is TiDB the wrong choice?
When the database is small enough for one server, when latency on single-row lookups is the primary constraint, or when the application depends on MySQL stored procedures and triggers.
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
- TiDB vs SingleStore
- TiDB vs CockroachDB
- TiDB vs YugabyteDB
- TiDB vs Amazon Aurora
- TiDB vs PlanetScale
- TiDB vs MySQL
- TiDB vs Vitess
- TiDB vs Google Cloud Spanner
- TiDB vs Elasticsearch
- TiDB vs SAP HANA
- TiDB vs DuckDB
- TiDB vs Aerospike
- TiDB vs Apache HBase
- TiDB vs Amazon DocumentDB
- TiDB vs BigQuery
- TiDB vs Apache Ignite
- TiDB vs Amazon ElastiCache
- TiDB vs Amazon Neptune
- TiDB vs Dremio
- TiDB vs Presto
- TiDB vs Apache Hadoop
- TiDB vs StarRocks
- TiDB vs Apache Spark
- TiDB vs Turso
- TiDB vs Readyset
- TiDB vs Apache Doris
- TiDB vs RisingWave
- TiDB vs LanceDB
- TiDB vs OpenSearch
- TiDB vs Redpanda
- TiDB vs Upstash
- TiDB vs Materialize
- TiDB vs Apache Flink
- TiDB vs Valkey
- Trino vs SingleStore
- Trino vs CockroachDB
- Trino vs YugabyteDB
- Trino vs Amazon Aurora
- Trino vs PlanetScale
- Trino vs MySQL
- Trino vs Vitess
- Trino vs Google Cloud Spanner
- Trino vs Elasticsearch
- Trino vs SAP HANA
- Trino vs DuckDB
- Trino vs Aerospike
- Trino vs Apache HBase
- Trino vs Amazon DocumentDB
- Trino vs BigQuery
- Trino vs Apache Ignite
- Trino vs Amazon ElastiCache
- Trino vs Amazon Neptune
- Trino vs Dremio
- Trino vs Presto
- Trino vs Apache Hadoop
- Trino vs StarRocks
- Trino vs Apache Spark
- Trino vs Turso
- Trino vs Readyset
- Trino vs Apache Doris
- Trino vs RisingWave
- Trino vs LanceDB
- Trino vs OpenSearch
- Trino vs Redpanda
- Trino vs Upstash
- Trino vs Materialize
- Trino vs Apache Flink
- Trino vs Valkey
