Short version: If you’re thinking about TiDB Cloud Starter (formerly TiDB Serverless) for a production workload that uses foreign keys, know this first. As of December 2, 2026, Starter runs TiDB v8.5.3. On that version, foreign key checks take an exclusive lock on the parent row, so concurrent writes that reference the same parent block each other and fail with Error 1205: Lock wait timeout exceeded. TiDB fixed this in v8.5.6, released April 14, 2026. Starter users can’t upgrade, there’s no published date for when Starter will get it, and as a paying Starter customer we couldn’t even open a support ticket to ask.
We’re a paying TiDB Cloud Starter customer, and we’re hitting this in production. This post covers the technical problem, how to reproduce it, the timeline from TiDB’s own docs, and what the experience says about choosing TiDB Cloud for production.
Key facts
All of these come from TiDB’s public documentation. Sources are linked at the end.
- TiDB Cloud Starter clusters have run TiDB v8.5.3 since February 10, 2026.
- TiDB v8.5.6 was released April 14, 2026. It added
tidb_foreign_key_check_in_shared_lock, which lets foreign key checks use shared locks instead of exclusive ones. - TiDB Cloud Dedicated moved to v8.5.6 on April 14, v8.5.7 on July 9, and v8.5.8 on August 28, 2026. Starter hasn’t moved.
- TiDB’s docs say Starter version upgrades “cannot be initiated by users”.
- TiDB’s upgrade docs say to “contact support to upgrade”. When we tried, the support portal said: “You do not have permission to create requests using this Portal.”
- PingCAP’s own best-practices blog recommends
tidb_foreign_key_check_in_shared_lockfor exactly this contention. Starter customers can’t use it.
Timeline
| Date | Event |
|---|---|
| Feb 10, 2026 | TiDB Cloud Starter upgraded from v7.5.6 to v8.5.3 |
| Apr 14, 2026 | TiDB v8.5.6 released with shared-lock foreign key checks. Dedicated default moves to v8.5.6 |
| Jul 9, 2026 | Dedicated default moves to v8.5.7 |
| Aug 28, 2026 | Dedicated default moves to v8.5.8 |
| Mid-Nov 2026 | We ask TiDB’s community channel whether our Starter cluster can get v8.5.6. Told someone will check with the team |
| Dec 2, 2026 | No answer yet. Support portal won’t accept our ticket. Starter is still on v8.5.3 |
By the time of this post, the fix has been public for more than seven months, and Starter is five patch releases behind Dedicated (v8.5.3 vs v8.5.8).
Why does TiDB throw Error 1205 on foreign key inserts?
Inserting a child row that has a foreign key makes the database check that the parent row exists. To stop the parent being deleted before the insert commits, the check also locks the parent row.
- MySQL (InnoDB) takes a shared lock on the parent. Any number of transactions can hold a shared lock on the same row at once, so concurrent inserts that reference the same parent don’t block each other.
- TiDB before v8.5.6 takes an exclusive lock, the same lock
SELECT ... FOR UPDATEtakes. Only one transaction can hold it at a time. Every other insert that references the same parent waits until that transaction commits, or fails onceinnodb_lock_wait_timeout(50 seconds by default) runs out.
TiDB markets itself as MySQL-compatible. This is a real compatibility gap: workloads that run concurrently on MySQL queue up on TiDB v8.5.3.
Why it hurts multi-tenant schemas the most
A common multi-tenant design gives nearly every table a tenant_id foreign key to a tenants table. With exclusive locks on foreign key checks, every write in a tenant has to lock that tenant’s single row in tenants.
That means a long background job writing to one table can block a user request writing to a completely different table, just because both belong to the same tenant. User-facing requests such as form submissions and saves fail after 50 seconds while unrelated background work runs.
How to reproduce it
CREATE TABLE tenants (id INT PRIMARY KEY);
CREATE TABLE orders (
id INT PRIMARY KEY AUTO_INCREMENT,
tenant_id INT NOT NULL,
FOREIGN KEY (tenant_id) REFERENCES tenants (id)
);
CREATE TABLE notes (
id INT PRIMARY KEY AUTO_INCREMENT,
tenant_id INT NOT NULL,
FOREIGN KEY (tenant_id) REFERENCES tenants (id)
);
INSERT INTO tenants VALUES (1);
Session A:
BEGIN;
INSERT INTO orders (tenant_id) VALUES (1);
-- leave the transaction open
Session B:
INSERT INTO notes (tenant_id) VALUES (1);
On MySQL, session B returns right away. On TiDB v8.5.3, session B waits until session A commits, or fails with error 1205. The two sessions write to different tables and share nothing except the parent row.
Workarounds on TiDB Cloud Starter
Until Starter gets v8.5.6, these are the options:
- Keep write transactions short. Commit after each unit of work, and never hold a transaction open across slow reads or network calls. This makes each wait shorter, but every write in a tenant still has to take the same row lock.
- Drop foreign key constraints on high-traffic tables. This removes the parent-row lock entirely, but you give up database-level integrity and have to enforce it in application code.
- Don’t turn off
foreign_key_checksfor the session. It disables integrity checks on every table that session writes to, which isn’t a safe trade in production.
None of these is as good as the one-line setting change that v8.5.6 allows.
Can you upgrade TiDB Cloud Starter to get the fix?
No. TiDB’s docs say Starter and Essential version upgrades are handled by TiDB Cloud and “cannot be initiated by users”. Starter has no maintenance window setting and no opt-in for newer versions.
Moving to a tier where you control the version, TiDB Cloud Dedicated, isn’t an in-place upgrade. It means exporting your data and importing it into a new cluster. TiDB’s docs also aren’t clear about which version Essential runs: the FAQ lists v7.5.2, while recent release notes mention Essential instances on v8.5.3 or earlier. Neither of those versions has the fix.
If a production fix means a full data migration anyway, it’s fair to consider every database option, not just the next TiDB tier.
What this says about the customer experience
A database is the one part of the stack you can’t easily swap out. Choosing a database vendor means trusting them with your data, your uptime, and your ability to fix things when they break. Here’s what that trust has looked like for us:
- We can’t control the version, and we can’t ask for a new one. TiDB Cloud decides when our cluster gets fixes, and there’s no published schedule. A bug that’s fixed upstream still affects us for as long as they choose.
- There’s no support channel for paying customers. TiDB’s docs say to contact support to upgrade, but the ticket portal is closed to us. The community channel is the only way in, and a promised follow-up has gone unanswered for two weeks.
- Upgrading to a better plan means migrating. The tiers are separate products, reached by exporting and importing data. “Start small and grow” ends up meaning “start small and migrate later.”
- The pitch and the reality don’t match. TiDB sells MySQL compatibility, and PingCAP’s own blog tells developers to use a setting that Starter customers can’t get.
Any one of these on its own would be annoying. Together, they mean a production database where we can’t get the fix, can’t escalate, and can’t upgrade without starting over.
Is TiDB Cloud Starter a good choice for production?
Based on our experience, only if you can live with three things:
- Fixes arrive on TiDB Cloud’s schedule, with no published timeline. Starter can be months and several releases behind upstream and Dedicated.
- Paying Starter customers may not be able to open technical support tickets. Plan on community channels as your only escalation path.
- Leaving Starter means a full export and import. There’s no in-place path to a tier where you control the version.
If your workload uses foreign keys heavily, especially a multi-tenant schema where most tables reference one parent table, test concurrent writes under load before you commit to Starter.
What we’re asking TiDB for
For this issue, either of these would unblock us:
- Roll v8.5.6 or later out to Starter clusters, or let individual clusters opt in early.
- Make
tidb_foreign_key_check_in_shared_lock(or its behavior) available on Starter without a version change.
For the long term, fixing this one bug isn’t enough. Next month there will be another fix we need, and we’ll be in the same position. What would actually change things:
- A published upgrade cadence for Starter. How often clusters move to new versions, and how far behind upstream they’re allowed to fall.
- A public Starter changelog with dates. Which version each region is running, when it changed, and what’s coming next.
- Advance notice of upgrades. A heads-up before a cluster’s version changes, so customers can test and plan.
- A way to ask for a fix. Paying Starter customers should be able to open technical support tickets and get an answer, even if the answer is “not until next quarter.”
We aren’t asking for special treatment. We’re asking for enough visibility to plan around the platform we’re paying for.
FAQ
What TiDB version does TiDB Cloud Starter run?
As of December 2, 2026, TiDB v8.5.3, the version it has run since February 10, 2026. You can check your own instance with SELECT VERSION(); or SELECT tidb_version();.
Does TiDB lock foreign keys the same way MySQL does?
No. MySQL InnoDB takes a shared lock on the parent row during a foreign key check. TiDB takes an exclusive lock in pessimistic transactions by default. From v8.5.6, tidb_foreign_key_check_in_shared_lock = ON switches TiDB to shared locks.
Can I enable tidb_foreign_key_check_in_shared_lock on TiDB Cloud Starter?
Not on v8.5.3. The variable was added in v8.5.6, and Starter users can’t upgrade their own instances.
Can I upgrade TiDB Cloud Starter myself?
No. TiDB Cloud handles Starter upgrades and doesn’t let users start them. TiDB’s docs say to contact support, but Starter customers may not have access to technical support tickets.
Is TiDB Cloud Starter the same as TiDB Serverless?
Yes. TiDB Serverless was renamed TiDB Cloud Starter on August 12, 2025.
How do I avoid lock wait timeouts with foreign keys on TiDB v8.5.3?
Keep write transactions short, commit after each unit of work, and avoid holding transactions open across slow queries or network calls. For high-traffic child tables, consider dropping the foreign key constraint and enforcing integrity in application code.
Sources
- TiDB 8.5.6 Release Notes: shared-lock foreign key checks, released April 14, 2026
- FOREIGN KEY Constraints, Locking section: exclusive lock by default,
SELECT ... FOR UPDATEbehavior - TiDB Cloud Release Notes in 2026: Starter on v8.5.3 from February 10, Dedicated version history
- TiDB Cloud FAQs: current TiDB version for each tier
- TiDB Cloud Starter FAQs: no user upgrades, Serverless renamed to Starter
- Limitations and Quotas of TiDB Cloud Starter and Essential: upgrades “cannot be initiated by users”
- Upgrade the TiDB version: “contact support to upgrade”
- AI-Assisted Coding: Best Practices for Production (PingCAP blog): recommends
tidb_foreign_key_check_in_shared_lock