Tag: design-database
All the articles with the tag "design-database".
-
TiKV Source Walkthrough - How Raft Log Garbage Collection Works
Follow a TiKV Raft leader from its periodic log-GC check to the asynchronous Raft Engine cleanup, including the replication checks and key configuration limits.
-
System Design - How TiDB Executes UPDATE in Source Code
Follow one UPDATE from TiDB's selection plan through UpdateExec, row validation, secondary-index maintenance, and transactional writes.
-
System Design - How TiDB Executes AS OF TIMESTAMP Reads
Trace one historical SELECT through TiDB's stale-read processor, transaction provider, and TiKV's safe timestamp and MVCC reader.
-
System Design - How TiDB's DELETE Executor Removes Rows
Follow one single-table DELETE through TiDB's DeleteExec: how child rows become handles, how the table layer removes row and index keys, and why deprecated batch-delete settings change transaction boundaries.
-
System Design - How TiKV Applies Committed Raft Entries in Source Code
Trace a committed TiKV Raft entry through the Peer, ApplyFsm, ApplyDelegate, and KV engine, including the apply index and worker settings.
-
TiDB Source Walkthrough - How PLAN REPLAYER DUMP EXPLAIN Works
Follow TiDB's PLAN REPLAYER DUMP EXPLAIN from PlanReplayerExec through the archive builder to the download handler, and see which schema, statistics, bindings, and settings help reproduce a plan.