From efdcbbb68256c6229e7d6625fa2b0fb437dcc79a Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 26 Sep 2022 15:41:22 +0800 Subject: [PATCH] statistics: add some doc for the exp feature (#9891) (#10534) (#10537) * This is an automated cherry-pick of #10534 Signed-off-by: ti-chi-bot * Apply suggestions from code review * resolve * Update extended-statistics.md Signed-off-by: ti-chi-bot Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- extended-statistics.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extended-statistics.md b/extended-statistics.md index 614ac02ce1e33..b6a2fae9456c7 100644 --- a/extended-statistics.md +++ b/extended-statistics.md @@ -7,18 +7,18 @@ summary: Learn how to use extended statistics to guide the optimizer. TiDB can collect the following two types of statistics: -- Regular statistics: statistics such as histograms and Count-Min Sketch. See [Introduction to Statistics](/statistics.md) for details. +- Basic statistics: statistics such as histograms and Count-Min Sketch. See [Introduction to Statistics](/statistics.md) for details. - Extended statistics: statistics filtered by tables and columns. > **Tip:** > > Before reading this document, it is recommended that you read [Introduction to Statistics](/statistics.md) first. -When the `ANALYZE` statement is executed manually or automatically, TiDB by default only collects the regular statistics and does not collect the extended statistics. This is because the extended statistics are only used for optimizer estimates in specific scenarios, and collecting them requires additional overhead. +When the `ANALYZE` statement is executed manually or automatically, TiDB by default only collects the basic statistics and does not collect the extended statistics. This is because the extended statistics are only used for optimizer estimates in specific scenarios, and collecting them requires additional overhead. Extended statistics are disabled by default. To collect extended statistics, you need to first enable the extended statistics, and then register each individual extended statistics object. -After the registration, the next time the `ANALYZE` statement is executed, TiDB collects both the regular statistics and the registered extended statistics. +After the registration, the next time the `ANALYZE` statement is executed, TiDB collects both the basic statistics and the registered extended statistics. ## Limitations @@ -107,7 +107,7 @@ Other TiDB nodes will read this change and delete the object in their memory cac ### Export and import extended statistics -The way of exporting or importing extended statistics is the same as exporting or importing regular statistics. See [Introduction to Statistics - Import and export statistics](/statistics.md#import-and-export-statistics) for details. +The way of exporting or importing extended statistics is the same as exporting or importing basic statistics. See [Introduction to Statistics - Import and export statistics](/statistics.md#import-and-export-statistics) for details. ## Usage examples for correlation-type extended statistics