TiDB X
TiDB X is a cloud-native distributed SQL database from PingCAP that re-architects the classic TiDB design around object storage as a shared persistent layer.
Publisher review
TiDB X is a cloud-native distributed SQL database from PingCAP that re-architects the classic TiDB design around object storage as a shared persistent layer. It is built for teams that need horizontal scalability, strong consistency, and the ability to run both transactional (OLTP) and analytical (OLAP) workloads on a single unified query engine. The target audience includes enterprises managing multi-region deployments, AI applications that combine vector search, knowledge graphs, and JSON with SQL, and organizations seeking to reduce total cost of ownership by separating compute from storage. TiDB X is positioned as an AI-native database, supporting integrations with OpenAI, Hugging Face, Cohere, Gemini, Jina, and NVIDIA for retrieval-augmented generation and reasoning workloads.
TiDB X introduces a shared-storage architecture where object storage serves as the backbone, allowing compute and storage to scale independently. Classic TiDB already separates TiDB servers (SQL parsing and query planning) from TiKV (key-value storage) and TiFlash (columnar analytics), but TiDB X pushes this further by making storage stateless and elastic. The system provides context-aware scaling based on QPS, latency, query mix, and data types. It supports long-term memory with versioned, branchable storage, enabling time-travel queries and data branching for development and testing. The unified query engine fuses vectors, knowledge graphs, JSON, and SQL, making it possible to perform hybrid search (vector + full-text + SQL) in a single query. Benchmark data from 2024-2025 shows TiDB achieving 52K TPS on OLTP mixed workloads, 95K QPS on read-heavy workloads, and 40K TPS on write-heavy workloads on comparable cloud instances (c5.4xlarge, three regions).
In the distributed SQL market, TiDB competes directly with CockroachDB, YugabyteDB, and Google Spanner. Compared to CockroachDB, TiDB offers higher raw throughput (52K vs 45K TPS on OLTP mixed) and better analytical performance thanks to TiFlash. Against YugabyteDB, TiDB provides automatic geo-partitioning and lower P99 write latencies for geo-distributed writes (30-80ms vs YugabyteDB's higher range). However, CockroachDB has a simpler operational model with a single tightly coupled architecture, while TiDB requires managing two distinct services (TiDB + TiKV). YugabyteDB offers closer PostgreSQL compatibility, while TiDB is MySQL-compatible. TiDB X's shared-storage architecture is a differentiator, enabling instant elasticity and cost optimization that competitors' shared-nothing designs do not match.
The honest trade-offs: First, operational complexity is real — running TiDB means managing separate TiDB, TiKV, and TiFlash components, plus now object storage configuration. Second, while TiDB X reduces storage costs through object storage, the compute layer can still be expensive under sustained high QPS due to the need for many TiDB nodes. Third, MySQL compatibility is not perfect; some MySQL features (e.g., stored procedures, triggers, full-text indexes in older versions) have limited support, which can complicate migrations. Fourth, multi-region deployments require careful placement rule tuning to avoid cross-region latency penalties; the 30-80ms P99 write latency is good but not as low as single-region setups.
How it works
-
Object storage backbone
TiDB X uses object storage as the shared persistent layer, enabling stateless compute nodes and instant elasticity.
-
Unified query engine
Fuses vectors, knowledge graphs, JSON, and SQL into a single query interface for hybrid search and reasoning.
-
Context-aware scaling
Scales compute nodes based on QPS, latency, query mix, and data types, not just CPU or memory.
-
Versioned branchable storage
Supports long-term memory with time-travel queries and data branching for development and testing.
-
AI model integrations
Native support for OpenAI, Hugging Face, Cohere, Gemini, Jina, and NVIDIA for RAG and AI workloads.
-
Separation of compute and storage
Compute and storage scale independently, reducing TCO by allowing each layer to be optimized separately.
-
Automatic sharding and rebalancing
Data is automatically split into regions and rebalanced across nodes with zero downtime.
Strengths and trade-offs
Strengths
- Achieves 52K TPS on OLTP mixed workloads in three-region benchmarks, outperforming CockroachDB (45K) and YugabyteDB (48K).
- Delivers P99 write latencies of 30-80ms for geo-distributed writes through placement rules that pin Raft leaders near writers.
- Supports automatic geo-partitioning with declarative placement rules, reducing manual configuration compared to YugabyteDB.
- Unifies transactional and analytical workloads in a single system via TiFlash columnar storage, offering excellent analytics performance.
Trade-offs
- Operational complexity is higher than CockroachDB because TiDB requires managing two separate services (TiDB + TiKV) plus object storage.
- MySQL compatibility is not complete; some MySQL features like stored procedures and triggers have limited support, complicating migrations.
- Multi-region deployments require careful tuning of placement rules to avoid cross-region latency penalties; default configurations may not be optimal.
- Compute layer costs can escalate under sustained high QPS due to the need for many TiDB nodes, offsetting storage savings from object storage.
Pricing context
TiDB X is available via TiDB Cloud Premium in public preview with unlimited growth and instant elasticity; specific per-node or per-credit pricing is not publicly disclosed. Classic TiDB offers a free tier (TiDB Serverless) and paid tiers (TiDB Dedicated) with hourly compute and storage costs.
Getting started with TiDB X
-
Sign up for TiDB Cloud
Go to the TiDB Cloud website and create an account. Choose the TiDB X public preview plan to access the shared-storage architecture. Complete the registration and verify your email address.
-
Create a TiDB X cluster
In the TiDB Cloud console, click "Create Cluster". Select the TiDB X preview option, choose your cloud provider and region, then configure the cluster size. Click "Create" to provision the cluster.
-
Connect your application
Retrieve the connection string from the cluster overview page. Use a MySQL-compatible client or driver to connect to the TiDB X endpoint. Provide the username and password you set during cluster creation.
-
Load sample data
Download a sample dataset, such as the TiDB benchmark dataset. Use the MySQL command-line client to run the SQL script that creates tables and inserts data. Verify the data with a SELECT query.
-
Run a hybrid query
Write a SQL query that combines vector search and full-text search using the unified query engine. For example, use the VEC_DISTANCE function to find similar items and MATCH AGAINST for text relevance. Execute the query and review the results.
Frequently Asked Questions
What is TiDB X and how does it differ from classic TiDB?
TiDB X is a cloud-native distributed SQL database from PingCAP that uses object storage as a shared persistent layer, allowing compute and storage to scale independently. Classic TiDB separates SQL parsing from storage, but TiDB X makes storage stateless and elastic for instant scalability.
How does TiDB X handle both transactional and analytical workloads?
TiDB X uses a unified query engine that fuses vectors, knowledge graphs, JSON, and SQL, enabling hybrid search in a single query. It supports OLTP through TiKV and OLAP through TiFlash columnar storage, allowing teams to run both workloads without separate systems.
What are the key performance benchmarks for TiDB X?
In 2024-2025 benchmarks on c5.4xlarge instances across three regions, TiDB achieved 52K TPS on OLTP mixed workloads, 95K QPS on read-heavy workloads, and 40K TPS on write-heavy workloads, outperforming CockroachDB and YugabyteDB in raw throughput.
How does TiDB X compare to CockroachDB and YugabyteDB?
TiDB X offers higher OLTP throughput (52K TPS) than CockroachDB (45K) and better analytical performance via TiFlash. It provides automatic geo-partitioning and lower P99 write latencies (30-80ms) for geo-distributed writes compared to YugabyteDB, but has higher operational complexity than CockroachDB.
What are the main trade-offs of using TiDB X?
TiDB X requires managing separate TiDB, TiKV, and TiFlash components plus object storage, increasing operational complexity. MySQL compatibility is not complete, with limited support for stored procedures and triggers. Multi-region deployments need careful placement rule tuning to avoid cross-region latency.
What AI integrations does TiDB X support?
TiDB X is positioned as an AI-native database with native support for OpenAI, Hugging Face, Cohere, Gemini, Jina, and NVIDIA. These integrations enable retrieval-augmented generation and reasoning workloads, allowing developers to combine vector search, knowledge graphs, and SQL in a single query.
Alternatives
How TiDB X compares
Direct head-to-head against 3 competitors. Picked by 7wData.
TiDB X
- Pricing
- TiDB X is available via TiDB Cloud Premium in public preview with unlimited growth and instant elasticity; specific per-node or per-credit pricing is not publicly disclosed. Classic TiDB offers a free tier (TiDB Serverless) and paid tiers (TiDB Dedicated) with hourly compute and storage costs.
- Target
- TiDB X is a cloud-native distributed SQL database from PingCAP that re-architects the classic TiDB design around object storage as a shared persistent layer.
- Strength
- Achieves 52K TPS on OLTP mixed workloads in three-region benchmarks, outperforming CockroachDB (45K) and YugabyteDB (48K).
- Watch for
- Operational complexity is higher than CockroachDB because TiDB requires managing two separate services (TiDB + TiKV) plus object storage.
CockroachDB
- Pricing
- $0.25/vCPU/hour + $0.015/GB storage
- Target
- Global distributed SQL for transactional workloads
- Deployment
- Cloud, self-hosted
- Strength
- Strong consistency across regions
- Watch for
- Complexity in multi-region deployments
MongoDB Atlas
- Pricing
- $0.08/vCPU/hour + $0.25/GB storage
- Target
- Document-based AI and transactional apps
- Deployment
- Cloud only
- Strength
- Flexible schema for unstructured data
- Watch for
- Cost spikes at scale with document storage
YugabyteDB
- Pricing
- $0.20/vCPU/hour + $0.10/GB storage
- Target
- PostgreSQL-compatible distributed SQL
- Deployment
- Cloud, self-hosted
- Strength
- PostgreSQL wire compatibility
- Watch for
- Younger ecosystem than TiDB
User reviews
No user reviews yet. Be the first to write one.
Sources
Reporting on this tool draws on these publicly available sources.