Skip to content

docs: add how-to guides for TiDB session variable tuning#16

Open
terry1purcell wants to merge 1 commit intopingcap:mainfrom
terry1purcell:feat/how-to-variable-guides
Open

docs: add how-to guides for TiDB session variable tuning#16
terry1purcell wants to merge 1 commit intopingcap:mainfrom
terry1purcell:feat/how-to-variable-guides

Conversation

@terry1purcell
Copy link
Collaborator

Add 7 scenario-based how-to guides covering all non-cost-factor session variables, grouped by tuning concern: query execution, cost model, statistics collection, stats loading, memory/resources, TiFlash/MPP, and plan baselines.

Add 7 scenario-based how-to guides covering all non-cost-factor
session variables, grouped by tuning concern: query execution,
cost model, statistics collection, stats loading, memory/resources,
TiFlash/MPP, and plan baselines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a guide to tell it when to read the how-to directly.

SET GLOBAL tidb_enable_historical_stats = OFF;
```

**Benefit:** Stops TiDB from storing historical stats snapshots, reducing memory pressure. Only enable this if you have a specific operational need to compare stats across time periods.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We turned it off by default because the implementation still has bugs, causing a lot of issues

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I need to go through again and validate which ones we are actually planning to deprecate.

@terry1purcell
Copy link
Collaborator Author

/hold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants