Tag: design-tidb
All the articles with the tag "design-tidb".
-
System Design - How TiDB Implements SHOW WARNINGS
Trace a TiDB diagnostic from StatementContext through its warning handler into SHOW WARNINGS, including SQL mode, warning counts, and the ShowExec output path.
-
System Design - How TiDB TableDual Produces Rows Without a Table
Trace TiDB's TableDual from a logical plan to an executor, including zero-column rows, empty results, and chunk settings.
-
System Design - How TiDB Isolates a Failed Statement Inside a Transaction
A source walkthrough of TiDB's LazyTxn and MemBuffer staging: how a successful statement joins a transaction while a failed statement's writes are discarded.
-
System Design - How TiDB Retries Coprocessor Tasks After Region Splits
Trace one TiDB coprocessor scan from key ranges to region tasks, then follow an EpochNotMatch response through the region cache and task rebuild.
-
System Design - How TiDB Runaway Query Watch Works in Source Code
Follow TiDB's runaway-query rules from SQL configuration through the local watch cache and per-query checker to the coprocessor request path.
-
System Design - How TiDB SQL Bindings Reach the Optimizer
Updated:Trace a TiDB global SQL binding from CREATE BINDING through mysql.bind_info and per-instance caches to optimizer hint application.