Short answer: consider TiDB when MySQL scaling has become real work
Use TiDB when distributed SQL and analytics on transactional data solve an existing MySQL constraint; keep MySQL when its current capacity and behavior meet the job. PingCAP's historical use-case article recommends MySQL for small workloads. Our November 14 source build succeeded in 531 seconds, but its tests reached the 900-second limit with 5 passes and 5 failures reported out of 10 in our sandbox measurements. Those results make contributor setup part of this review's adoption decision.
TiDB combines a SQL interface with two storage engines. The TiDB README identifies TiKV as row-based storage and TiFlash as columnar storage. This is its hybrid transactional and analytical processing, or HTAP, architecture. A team whose reports compete with application transactions has a specific reason to examine that arrangement. A team whose database already meets its requirements needs a stronger justification than preparing for hypothetical growth, especially when adopting the system also changes migration and operational tools.
What people use tidb for
Streak uses TiDB for email and metadata sharing, according to Fred Wulff's testimonial on PingCAP's operational-intelligence page. The other accounts below describe integration with an existing MySQL deployment, growth through synchronization tools and an implementation at an unnamed employer. Their attribution is part of the evidence: PingCAP hosts the customer accounts, while cassioperin describes personal implementation work on Reddit. The examples identify jobs for the database rather than assigning one performance result to all adopters.
| Who used it | What they did and reported | How to read the account |
|---|---|---|
| Streak, through Fred Wulff | Used TiDB for email and metadata sharing; its VP of Engineering reported easier sharing and faster development in a vendor-hosted testimonial. | A named customer's qualitative account. |
| Yiguo.com | Added TiDB alongside MySQL after SQL Server infrastructure changes; PingCAP describes complex joins supporting Singles' Day decisions in its historical case study. | A vendor account of operational analytics. |
| Mobike | Deployed TiDB with MySQL synchronization tools as its data needs grew, according to the historical case study. | A growth and integration account. |
| Reddit user cassioperin | Reported leading a successful implementation at an unnamed employer in r/learnprogramming. | An individual implementation report. |
PingCAP's historical article also describes Ele.me serving 80 percent of live traffic through one TiKV deployment across four datacenters. That account names the storage component, TiKV. TiDB SQL and TiKV have different roles, so the component name must stay attached to the traffic figure. For application integration, PingCAP's Go tutorial uses Go-MySQL-Driver and database/sql, giving Go developers a documented client route alongside the customer deployment stories.
What happened when we ran it
Our November 24 run cloned bcc879cc839b, then a separate latest-module installation failed in 16.8 seconds. The run configuration records 2 CPUs, 4 GB RAM and image label golang:1.24-bookworm, with no published ports or secrets. The cloned revision identifies the checkout. The command go install github.com/pingcap/tidb/...@latest resolves independently of that checkout, and the installed TiDB module revision was not established by the recorded log.
The clone completed in 7 seconds. The subsequent installation exited with status 1 after 16.8 seconds. Its decisive error says kvproto required Go >= 1.27.3 while the process was running Go 1.24.13. This was a dependency-resolution failure in the latest-module attempt, not a failure attributable to cloned commit bcc879cc839b. The command came from the module name rather than the README's deployment instructions, and teardown completed successfully.
| Run and step | Recorded result | What it tells you |
|---|---|---|
| November 24, clone | 7 seconds | Checkout retrieval completed at bcc879cc839b. |
| November 24, latest-module install | Failed in 16.8 seconds, exit 1 | The resolved kvproto dependency required a newer Go toolchain. |
| November 14, dependency install | Succeeded in 133 seconds, 1,031 dependencies | Dependency setup completed for 7a158c6. |
| November 14, build | Succeeded in 531 seconds | The 7a158c6 checkout compiled in our sandbox. |
| November 14, tests | Timed out in 900 seconds; 5 passed, 5 failed of 10 reported | The recorded test run ended without a clean result. |
Our November 14 run used commit 7a158c6 with 3 CPUs, 8 GB RAM and image label golang:1.24-bookworm. We measured a 133-second dependency installation and a 531-second successful build. The checkout contained 7,931 files, about 1,843,223 source lines and 160.6 MB of data. The repository scan also found seven CI workflow files, a Dockerfile and a tests directory. These are source-workflow measurements, distinct from the README's downloaded-binary playground route.
The November 14 test tail includes fakecluster.trivialFlushStream.Recv, streamhelper.(*subscription).listenOver, doConnect.func1 and spawnJoinable.func1. It marks br/pkg/stream/crr/internal/checkpoint as FAIL after 360.070 seconds and br/pkg/stream/crr/service as passing in 0.465 seconds. The recorded summary reports 5 passes and 5 failures out of 10 before the 900-second timeout. Keeping the package lines alongside that summary preserves what the run actually reported without inventing a failing assertion.
Where people get stuck: playground persistence, clients and CI reports
An untagged TiUP playground loses its data when stopped, according to PingCAP's local setup tutorial. The tutorial documents tagged playgrounds for retaining development data between restarts. That distinction changes the setup choice immediately: a disposable SQL experiment and a database used across development sessions need different persistence settings. The same tutorial describes a MySQL client authentication-plugin problem, while the issue tracker records older import failures and recurring automated test reports.
| Symptom | What the author or maintainer recommends | Resolution shown |
|---|---|---|
| Playground data disappears after stopping | Use a tagged playground and restart with the same arguments, according to the local tutorial. | Documented persistence route. |
| Homebrew MySQL client cannot load mysql_native_password | The tutorial recommends MySQL Client 8.4 for the issue described at its time of writing. | Version-specific workaround. |
| Legacy Lightning reports Connect Failed | Maintainers request connectivity checks to importer, PD and every TiKV address, then suggest upgrading in issue #9269. | The thread proceeds to an upgrade timeout. |
| Upgrade waits for TiKV to stop | The reporter records a 300-second wait and port 20160 still running in issue #9269. | Reporter asks about manually stopping TiKV nodes. |
| TestResourceGroupRunaway flakes | Issue #66977 records recurring reports and an automated reopening. | Open in the captured discussion. |
| TestResourceGroupRunawayFlood flakes | Issue #67566 records automated failures. | Open in the captured discussion. |
| TestPlanStatsLoad/off flakes | Issue #69696 records reports extending into September 2026. | Open in the captured discussion. |
The 2019 Lightning thread contains both a Connect Failed RPC error and a later upgrade timeout. Its connectivity recommendations belong to that deployment history. The newer resource-group and planner issues are automated CI reports. In particular, issue #66977 records a failure after closure and an automated reopening. These details give contributors concrete test names and chronology to follow instead of treating an issue's administrative status as the whole technical account.
Four other closed discussions concern TestPreparedPlanCacheInvalidatedAfterSyncLoadTimeoutFallback, TestGlobalMemoryControlForAnalyze, TestOwnerDropped and TestBackfillOperatorPipelineException. Their respective issue numbers are #67629, #67401, #67556 and #69664. Historical 2020 reports also name a TestInfo goroutine leak and TestSyncerSimple failures, with a possible data race suggested for the latter. Those records concern specific checks and dates.
MySQL migration needs a schema and operations checklist
TiDB does not support the MySQL replication protocol. PingCAP's compatibility guide directs incoming migration and replication to DM and outgoing incremental changes to TiCDC. The same guide lists unsupported stored procedures, functions and triggers. A familiar driver therefore leaves concrete work in application SQL and operational scripts. Inventory both before choosing a cutover method, including any process that assumes the existing database's replication interface.
PingCAP's workshop for MySQL users covers identifiers, metadata locks, primary-key layout and resource control. Those topics form a practical acceptance checklist. Exercise identifier generation and insertion-order assumptions, run schema changes while transactions stay active, compare clustered and non-clustered primary keys against application queries, and place an analytical report beside transaction traffic. Rehearse incoming migration and the outgoing change stream as separate jobs. These are proposed evaluation tasks, with named behavior to inspect.
The stable tools guide assigns cluster backup and restore to BR. It also describes Dumpling and Lightning for full-data movement and DM for incremental migration in the documented scenarios. Tool selection should follow the operation being performed: loading data, keeping changes flowing and restoring a cluster are different tasks. A migration plan needs an explicit reversal route and a restore exercise as well as a successful initial import.
At volume, isolation is a deployment choice
TiKV and TiFlash can run on different machines for HTAP resource isolation, according to PingCAP's stable overview. Component placement belongs in the design when reports and transactions share a database system. The question is how the intended topology handles the application's actual queries, including reports that scan substantially more data than routine requests. A columnar engine gives the evaluation a concrete architectural option; query shape and placement still determine the work to measure.
Security: PingCAP disclosed internal-system access
PingCAP disclosed unauthorized access to certain internal systems on October 20, 2026. Its statement reports containment measures and engagement of independent cybersecurity firms. It also says there was no evidence that user data stored in TiDB was impacted and that investigation continued. These are PingCAP's statements about the incident. For a database buyer, the event belongs alongside contractual access, deployment location and incident-handling requirements in the vendor assessment.
PingCAP's local tutorial shows localhost root connections without a password and Grafana credentials of admin/admin. The installation and networking video instead describes a root password displayed during initialization. The presenter inserts data through a MySQL client and reads it through a second SQL node. The video also reports replacing a dash with a period in configuration syntax, persisting a setting through TiUP configuration and reloading affected components; its minimal setup omits backups.
Agent workspaces are demos and preview features
TiDB AgentSpace is described by siddontang as a persistent workspace for agents' files and databases. In the November 14 post, the author says it uses TiDB Cloud's free tier and has no production connection. A separate DuckDB and TiDB File System experiment describes handing a database between machines through shared storage. Its stated access boundary is one writer or multiple read-only clients using advisory locks, while the linked Cloud Filesystem announcement describes public preview.
TiDB vs MySQL, Vitess and other database choices
Vitess describes itself as a distributed database system built around MySQL in its project README. TiDB's README instead describes SQL execution over TiKV and TiFlash. That distinction makes retaining MySQL servers a useful starting question for a shortlist. The table also identifies the authors behind other comparisons: a review site's compatibility framing, a vendor white paper and community discussion each answer a different part of the selection problem.
| Comparison | Evidence-backed distinction | Selection question |
|---|---|---|
| TiDB vs MySQL | PingCAP's historical article recommends MySQL for small workloads. | What existing constraint justifies distribution? |
| TiDB vs Vitess | Vitess is built around MySQL; TiDB documents TiKV and TiFlash storage. | Must the architecture retain MySQL servers? |
| TiDB vs CockroachDB | MakerStack frames the comparison around MySQL versus PostgreSQL compatibility. | Which application interface is required? |
| TiDB vs DynamoDB | A Zomato migration discussion separates reported throughput gains from a commenter's managed-service rationale. | Is the problem database behavior, operator workload or both? |
| TiDB vs Aurora | PingCAP's white paper compares their architectures. | Which read/write topology fits the application? |
| TiDB vs Snowflake | A warehouse discussion asks why Snowflake is preferable, with replies discussing MPP execution. | What reporting and ingestion workflow is needed? |
The Zomato thread reports a migration away from TiDB, with its original poster describing quadrupled throughput and reduced operational complexity. Commenter AdministrativeDog546 questions the explanation of TiDB's bottlenecks and identifies managed operation as the clearest justification. Keeping those two positions together preserves the disagreement. It also gives a buyer two separate questions to investigate: the cost of operating the present system and the behavior of the replacement under the billing workload.
Outdated claims, corrected
MakerStack lists 5 GiB each of row and columnar storage and 50 million monthly Request Units, while The AI Tool Bible's November 6, 2026 capture lists 25 GiB each and 250 million RUs. The MakerStack review and AI Tool Bible pricing capture therefore disagree. Request Units are the usage unit named in those tables. The disagreement is the correction here; replacing one third-party table with the other would not produce a primary pricing quotation.
PingCAP's historical architecture article describes a specialized columnar engine as future work, while its stable overview says TiFlash was introduced in v4.0. The v2.1 Lightning tutorial lists backup and restore as a scenario, whereas the stable tools guide directs cluster backup and restore to BR. Those older passages belong to their documentation period. Current tool selection should follow the guide for the intended operation and version.
The Introduction To TiDB video calls MySQL compatibility complete. PingCAP's primary compatibility guide lists exceptions, including stored procedures, triggers and the replication protocol. MakerStack also advertises sub-second analytics and aggregations without affecting application reads and writes. The architecture documentation gives a narrower concrete fact: TiKV and TiFlash can be placed on different machines for resource isolation. That deployment choice is useful guidance without turning a review's latency promise into a measured result.
Questions people ask
Keep MySQL when its current workload fits; evaluate TiDB when SQL distribution or transactional analytics addresses a concrete constraint. That recommendation follows PingCAP's historical workload guidance and the architecture described in its README. The questions below concern migration, storage roles and the alternatives readers have asked about. Application compatibility and the operating model provide more useful answers than a general winner across every database category.
What is TiDB, and why are companies switching to it?
TiDB is a distributed SQL database with TiKV row storage and TiFlash columnar storage. Its README describes separate compute and storage scaling. The named accounts describe different reasons for adoption: Streak's email and metadata sharing, Yiguo.com's operational joins and Mobike's growth alongside MySQL synchronization. These are attributed accounts of particular jobs, so the useful starting point is the workload closest to your own application.
Why use TiDB when MySQL still works?
PingCAP recommends retaining MySQL for small workloads in its historical use-case article. TiDB becomes a candidate when scaling or analysis of transactional data creates a present requirement. That decision also brings migration work: the compatibility guide lists feature differences and assigns replication to separate tools. A team should name the capacity or reporting problem before accepting the cost of changing a working database.
Should I choose TiDB, Vitess, or PostgreSQL for my workload?
Vitess is built around MySQL, while TiDB documents SQL execution with TiKV and TiFlash storage. The Vitess README and TiDB README support that architectural distinction. For a team keeping MySQL servers, Vitess belongs on the shortlist. For a team evaluating TiDB's transaction-and-analytics arrangement, the migration checklist above supplies specific application checks. PostgreSQL joins the outstanding comparison work described below.
What is the difference between TiDB and TiKV?
TiDB is the SQL layer, while TiKV is the transactional key-value storage component in PingCAP's architecture description. The TiDB README identifies TiKV as its row-based engine and TiFlash as its columnar engine. That distinction matters when reading deployment accounts: a traffic figure assigned to TiKV describes the storage deployment and must retain that component name when used to assess the broader database system.
What we have not tested yet
Our runs measured source setup, compilation and an incomplete test run, not production database performance. Transaction throughput, tail latency, TiFlash-versus-warehouse performance, failover, restore recovery and correctness under concurrency remain outside those runs. The November 14 tail identifies neither the failing assertions nor a root cause, and its partial summary is not a complete suite count. Its image label also leaves actual runtime and operating-system versions unspecified. Different commands, revisions and resource allocations prevent a regression conclusion between the two dates.
The November 24 log leaves the resolved TiDB module revision unidentified, and no newer-toolchain rerun is recorded. Customer testimonials and the Zomato discussion provide no independent matching benchmark for this decision. The CI extracts do not identify final corrective commits for the closed cases, and they do not demonstrate production data loss. The historical TestInfo and TestSyncerSimple reports do not establish current runtime defects. No numerical product rating, universal sub-second result or cost-saving conclusion follows from these observations.
Current Cloud allowances and bills, preview Filesystem reliability, deployment security across versions and the final scope of PingCAP's October incident need further evidence. The video demonstrates connectivity rather than production resilience. Direct comparisons with CockroachDB, PostgreSQL, OceanBase, Supabase, ClickHouse, YugabyteDB, Aurora and Snowflake need primary product research and matching workloads before a comparative verdict. Search volumes, deployment share and support quality are unknown. The next evaluation should combine the application's hardest transaction, largest operational report, migration reversal and restore exercise on the intended topology.


