Tag: design-tidb
All the articles with the tag "design-tidb".
-
System Design - How TiKV Raftstore's Batch System Dispatches Messages
A source-code walk through TiKV Raftstore's BatchSystem, RaftPoller, StoreFsm, and PeerFsm: how messages become bounded batches of per-Region work without one busy Region starving the rest.
-
How TiDB's Optimized Hash Join Builds and Probes in Source Code
A focused walkthrough of TiDB's optimized hash join: HashJoinV2Exec, its context, build workers, probe workers, partitions, and spill-to-disk behavior.
-
System Design - How TiDB Statement Summary Works in Source Code
Follow one completed TiDB statement into the bounded digest map, interval history, and statement-summary tables, with the key source types and configuration controls.
-
System Design - How TiDB's EXPLAIN Executor Produces Plan Rows
Trace a SELECT's EXPLAIN and EXPLAIN ANALYZE through TiDB's planner, executor builder, and ExplainExec to see when SQL runs and how plan rows reach the client.
-
System Design - How TiDB Batch Point Get Fetches Unique Keys
Walk through TiDB's BatchPointGetPlan, executor builder, and BatchPointGetExec as an IN-list on a unique secondary index becomes two KV batch reads.
-
System Design - How TiDB Checks a Scalar Subquery's Row Count
Follow TiDB's LogicalMaxOneRow, PhysicalMaxOneRow, executor builder, and MaxOneRowExec through the zero-, one-, and many-row cases.