Skip to content

Commit

Permalink
dev-v6.2: remove stats feedback (pingcap#12165)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Dec 22, 2022
1 parent 92f55e5 commit 3d1a7c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion basic-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ aliases: ['/docs-cn/dev/basic-features/']
| [CM-Sketch](/statistics.md) | 默认关闭 | 默认关闭 | 默认关闭 | 默认关闭 | 默认关闭 | 默认关闭 | 默认关闭 | Y | Y | Y | Y |
| [直方图](/statistics.md) | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| 扩展统计信息(多列) | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | N |
| [统计反馈](/statistics.md#自动更新) | 已废弃 | 已废弃 | 已废弃 | 已废弃 | 已废弃 | 已废弃 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 |
| 统计反馈 | N | N | N | 已废弃 | 已废弃 | 已废弃 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 |
| [统计信息自动更新](/statistics.md#自动更新) | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| [快速分析](/system-variables.md#tidb_enable_fast_analyze) | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 |
| [动态裁剪](/partitioned-table.md#动态裁剪模式) | Y | Y | Y | Y | 实验特性 | 实验特性 | 实验特性 | 实验特性 | 实验特性 | N | N |
Expand Down
2 changes: 0 additions & 2 deletions statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ ANALYZE INCREMENTAL TABLE TableName PARTITION PartitionNameList INDEX [IndexName

为了避免小表因为少量数据修改而频繁触发自动更新,当表的行数小于 1000 时,TiDB 不会触发对此表的自动更新。你可以通过 `SHOW STATS_META` 来查看表的行数情况。

在 TiDB v5.0 之前,执行查询语句时,TiDB 会以 `feedback-probability`的概率收集反馈信息,并将其用于更新直方图和 Count-Min Sketch。**v5.0 起,该功能默认关闭,暂不建议开启此功能。从 v6.2.0 开始,该配置项被移除。**

从 TiDB v6.0 起,TiDB 支持通过 `KILL` 语句终止正在后台运行的 `ANALYZE` 任务。如果发现正在后台运行的 `ANALYZE` 任务消耗大量资源影响业务,你可以通过以下步骤终止该 `ANALYZE` 任务:

1. 执行以下 SQL 语句:
Expand Down

0 comments on commit 3d1a7c3

Please sign in to comment.