From 67d0f5ebd93c95b1a5f6e4063d96d4c2d82087a4 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 27 Mar 2024 15:15:47 +0800 Subject: [PATCH] restore: add load stats description (#16846) --- br/br-snapshot-manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/br/br-snapshot-manual.md b/br/br-snapshot-manual.md index 89149afb8184b..8631205949ace 100644 --- a/br/br-snapshot-manual.md +++ b/br/br-snapshot-manual.md @@ -112,7 +112,7 @@ br backup full \ ## Back up statistics -Starting from TiDB v7.5.0, the `br` command-line tool introduces the `--ignore-stats` parameter. When you set this parameter to `false`, the `br` command-line tool supports backing up and restoring statistics of columns, indexes, and tables. In this case, you do not need to manually run the statistics collection task for the TiDB database restored from the backup, or wait for the completion of the automatic collection task. This feature simplifies the database maintenance work and improves the query performance. +Starting from TiDB v7.5.0, the `br` command-line tool introduces the `--ignore-stats` parameter. When you set this parameter to `false`, the `br` command-line tool supports backing up statistics of columns, indexes, and tables. In this case, you do not need to manually run the statistics collection task for the TiDB database restored from the backup, or wait for the completion of the automatic collection task. This feature simplifies the database maintenance work and improves the query performance. If you do not set this parameter to `false`, the `br` command-line tool uses the default setting `--ignore-stats=true`, which means statistics are not backed up during data backup. @@ -124,7 +124,7 @@ br backup full \ --ignore-stats=false ``` -After backing up data with the preceding configuration, when you restore data, the `br` command-line tool automatically restores table statistics if table statistics are included in the backup: +After backing up data with the preceding configuration, when you restore data, the `br` command-line tool automatically restores table statistics if table statistics are included in the backup (Starting from v8.0.0, the `br` command-line tool introduces the `--load-stats` parameter, which controls whether to restore backup statistics. The default behavior is to restore backup statistics. There is no need to set it to `false` in most cases): ```shell br restore full \