Skip to content

Commit eb8eb5a

Browse files
committed
add new section
Signed-off-by: Aolin <[email protected]>
1 parent e77e469 commit eb8eb5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clinic/clinic-collect-sql-query-plan.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Learn how to use PingCAP Clinic Diag to collect SQL query plan related
55

66
# Collect SQL Query Plan Related Information Using PingCAP Clinic Diag
77

8-
Since TiDB v5.3.0, the [`PLAN REPLAYER`](/sql-plan-replayer.md) is introduced to import and export SQL query plan related information using a single command, and simplifies troubleshooting hints-related issues. Clinic Diag client (Diag) integrates the `PLAN REPLAYER` feature. You can use Diag to collect SQL query plan related information conveniently.
8+
Starting from TiDB v5.3.0, the [`PLAN REPLAYER`](/sql-plan-replayer.md) is introduced to import and export SQL query plan related information using a single command, and simplifies troubleshooting hints-related issues. Clinic Diag client (Diag) integrates the `PLAN REPLAYER` feature. You can use Diag to collect SQL query plan related information conveniently.
99

1010
## Description
1111

@@ -113,3 +113,7 @@ To collect custom data, specify the path to configuration file using the `--prof
113113
```bash
114114
diag collect <cluster-name> --profile=<profile-filepath> --explain-sql=<statement-filepath>
115115
```
116+
117+
### Import the data into a TiDB cluster
118+
119+
The `plan_replayer.zip` in the collection result can be directly imported into the TiDB cluster using the `PLAN REPLAYER LOAD` statement. For more information, see [Use `PLAN REPLAYER` to import cluster information](/sql-plan-replayer.md#use-plan-replayer-to-import-cluster-information)

0 commit comments

Comments
 (0)