获取帮助

使用SQLdiag工具前,您可以通过以下指令获取帮助。

1. gs_dbmind component sqldiag --help

显示如下帮助信息:

1. usage:   [-h] [-f CSV_FILE] [--predicted-file PREDICTED_FILE]
2. [--model {template,dnn}] --model-path MODEL_PATH
3. [--config-file CONFIG_FILE]
4. {train,predict,finetune}

6. SQLdiag integrated by openGauss.

8. positional arguments:
9. {train,predict,finetune}
10. The training mode is to perform feature extraction and
11. model training based on historical SQL statements. The
12. prediction mode is to predict the execution time of a
13. new SQL statement through the trained model.

15. optional arguments:
16. -h, --help            show this help message and exit
17. -f CSV_FILE, --csv-file CSV_FILE
18. The data set for training or prediction. The file
19. format is CSV. If it is two columns, the format is
20. (SQL statement, duration time). If it is three
21. columns, the format is (timestamp of SQL statement
22. execution time, SQL statement, duration time).
23. --predicted-file PREDICTED_FILE
24. The file path to save the predicted result.
25. --model {template,dnn}
26. Choose the model model to use.
27. --model-path MODEL_PATH
28. The storage path of the model file, used to read or
29. save the model file.
30. --config-file CONFIG_FILE