Skip to content

Commit

Permalink
restore: add load stats description (#16846) (#16862)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Mar 27, 2024
1 parent 5765483 commit 88f371e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions br/br-snapshot-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 \
Expand Down

0 comments on commit 88f371e

Please sign in to comment.