Databases · head to head
TiDB vs Treasury Prime

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

Treasury Prime
APIs
Banking as a service platform sold to sponsor banks rather than to fintechs
- From
- On request
- Free plan
- No
The short version
- TiDB starts at $250/mo; Treasury Prime prices on request.
- Only TiDB lists MySQL wire compatibility; only Treasury Prime lists OneKey Banking.
How do TiDB and Treasury Prime differ?
TiDB and Treasury Prime differ on starting price (Free against On request), pricing model (Freemium against Quote) and free tier (Yes against No). Only the attributes on which TiDB and Treasury Prime actually diverge.
| Attribute | TiDB | Treasury Prime |
|---|---|---|
| Starting price | Free | On request |
| Pricing model | Freemium | Quote |
| Free tier | Yes | No |
| Platforms | Web, AWS, Azure, Self-managed | API, Web |
| Category | Databases | APIs |
| Founded | 2015 | 2017 |
Which features does each one have?
They share no listed features; 10 appear only for TiDB and 8 only for Treasury Prime. 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 Treasury Prime
- BankOS
- OneKey Banking
- Deposit accounts
- Payments
- Card issuing
- Bank oversight tooling
- Ledger and reconciliation
- Programme onboarding
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 Treasury Prime
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Treasury Prime
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Treasury Prime
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Treasury Prime
Treasury Prime
- A community or regional bank that wants to run an embedded finance line with examiner-acceptable oversight of its fintech programmesnot TiDB
- A fintech that has already chosen its sponsor bank and needs API access to that bank rather than to a middleware layernot TiDB
- A company that wants deposits spread across several banks for FDIC coverage beyond a single institution limitnot TiDB
- A bank replacing a fragile middleware arrangement with a structure where it holds the customer contract and the oversight obligationnot TiDB
Where do TiDB and Treasury Prime 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
Treasury Prime
- A fintech cannot buy Treasury Prime directly since the 2024 pivot, so the sales process starts with finding a sponsor bank willing to take your programme, which adds months and removes most of your negotiating leverage on fees
- Commercial terms including minimum deposit balances, reserve requirements and per transaction pricing are set by the bank rather than the platform, so two fintechs on the same software can face materially different economics with no public benchmark
- The company cut roughly half its staff in the 2024 pivot, which reduced the teams that supported fintech customers directly and left fintechs relying on their bank for support rather than on the vendor who wrote the software
- Bank risk appetite is now the binding constraint, and after the Synapse failure sponsor banks decline programmes in higher risk categories that a middleware provider would once have onboarded, so some business models simply cannot get placed
- If your sponsor bank exits the programme or is told by its regulator to reduce fintech exposure, you are migrating your entire deposit base to another institution, and the software being the same at both ends does not make that a small project
How much do TiDB and Treasury Prime cost?
TiDB has a free plan, with paid plans from $250/mo; Treasury Prime is priced on request. 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
Treasury Prime
On request- BankOSOn request
- Sold to sponsor banks, not directly to fintechs
- Fintech commercial terms are set by the sponsor bank
- Minimum deposits, reserves and per transaction fees vary by bank
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 Treasury Prime if
- You need bankos.
- You work on API, Web.
- You also want onekey banking.
Questions people ask
- Is TiDB or Treasury Prime 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; Treasury Prime fits a community or regional bank that wants to run an embedded finance line with examiner-acceptable oversight of its fintech programmes. TiDB starts at Free and Treasury Prime at On request.
- Which is cheaper, TiDB or Treasury Prime?
- TiDB has a free tier; the other does not. Paid plans start at Free for TiDB and On request for Treasury Prime.
- Does TiDB or Treasury Prime run on more platforms?
- TiDB runs on Web, AWS, Azure, Self-managed. Treasury Prime runs on API, Web.
- Can I use TiDB for free?
- Yes. TiDB has a free tier, so you can try it without paying. Treasury Prime starts at On request.
- 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 Treasury Prime is typically brought in for.
- What can TiDB do that Treasury Prime cannot?
- TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica. Treasury Prime covers BankOS, OneKey Banking, Deposit accounts, Payments.
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.
Treasury Prime: Can a fintech buy Treasury Prime directly?
No. Since the 2024 pivot it sells to banks. A fintech contracts with a sponsor bank running BankOS, and the bank sets the terms.
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.
Treasury Prime: Why did it change model?
Regulatory pressure on the tri-party middleware structure, sharpened by the Synapse failure. Examiners want the bank holding the customer contract and the oversight obligation, which is what bank-direct means.
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.
Treasury Prime: What is OneKey Banking?
A way of spreading deposits across several banks in the network, used for FDIC coverage above a single institution limit and for resilience if one bank exits.
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.
Treasury Prime: Is pricing published?
No, at neither the bank nor the fintech level. Fintech economics are set by the sponsor bank, so expect wide variation.
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.
Related pages
More on Treasury Prime
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 Apache HBase
- TiDB vs DbVisualizer
- TiDB vs EDB Postgres
- TiDB vs etcd
- TiDB vs Amazon Neptune
- TiDB vs BigQuery
- TiDB vs Apache Ignite
- TiDB vs Synctera
- TiDB vs Unit
- TiDB vs Griffin
- TiDB vs Column
- TiDB vs Increase
- TiDB vs Vodeno
- TiDB vs Lithic
- TiDB vs Fintech Farm
- TiDB vs Solaris
- TiDB vs Weavr
- TiDB vs Thredd
- TiDB vs Swan
- TiDB vs Fintecture
- TiDB vs KeystoneJS
- TiDB vs LiteLLM
- TiDB vs Moov
- TiDB vs Portkey
- TiDB vs Postmark
- Treasury Prime vs SingleStore
- Treasury Prime vs CockroachDB
- Treasury Prime vs YugabyteDB
- Treasury Prime vs Amazon Aurora
- Treasury Prime vs PlanetScale
- Treasury Prime vs MySQL
- Treasury Prime vs Vitess
- Treasury Prime vs Google Cloud Spanner
- Treasury Prime vs Elasticsearch
- Treasury Prime vs SAP HANA
- Treasury Prime vs DuckDB
- Treasury Prime vs Apache HBase
- Treasury Prime vs DbVisualizer
- Treasury Prime vs EDB Postgres
- Treasury Prime vs etcd
- Treasury Prime vs Amazon Neptune
- Treasury Prime vs BigQuery
- Treasury Prime vs Apache Ignite
- Treasury Prime vs Synctera
- Treasury Prime vs Unit
- Treasury Prime vs Griffin
- Treasury Prime vs Column
- Treasury Prime vs Increase
- Treasury Prime vs Vodeno
- Treasury Prime vs Lithic
- Treasury Prime vs Fintech Farm
- Treasury Prime vs Solaris
- Treasury Prime vs Weavr
- Treasury Prime vs Thredd
- Treasury Prime vs Swan
- Treasury Prime vs Fintecture
- Treasury Prime vs KeystoneJS
- Treasury Prime vs LiteLLM
- Treasury Prime vs Moov
- Treasury Prime vs Portkey
- Treasury Prime vs Postmark
