Tag: design-database
All the articles with the tag "design-database".
-
System Design - How TiDB Handles Prepared Statements in the MySQL Binary Protocol
Follow COM_STMT_PREPARE, COM_STMT_EXECUTE, and COM_STMT_CLOSE through TiDB's connection, session, parameter decoder, and configuration.
-
System Design - How TiDB ANALYZE TABLE Builds Statistics in Source
Updated:Trace TiDB ANALYZE TABLE from planner tasks through TiKV scans and TiDB statistics executors to persisted histograms, Top-N values, and optimizer estimates.
-
System Design - How HashiCorp Vault Issues Dynamic Database Credentials
Follow a database credential from workload authentication through Vault policies, a secrets engine, and a renewable lease to expiration and revocation.
-
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 Erasure Coding Protects Stored Data
Learn how storage systems combine data and parity fragments to recover lost data, and why the space savings come with repair and placement trade-offs.
-
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.