Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 适配tidb问题,DDL语句执行时间过长导致应用发布超时问题
Is there anyone who can answer this TiDB DDL statement performance issue? On a MySQL database with 4 cores and 8GB of RAM, modifying table column data types usually takes milliseconds, but on TiDB it takes about 3 seconds.
【TiDB Environment】Testing
【TiDB Version】v6.1.0
【Reproduction Path】Directly using the database connection tool BEAVER to test modifying table column data types, the average execution time is 3 seconds.
Example of the execution statement:
ALTER TABLE XD_wbshe59p_V20221118173739.Smt_AppEnviroment MODIFY COLUMN EnviromentName varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
Execution result screenshot:
【Problem Encountered: Phenomenon and Impact】
Affects application deployment, as the database statement execution time is too long, causing application packaging to timeout.
【Resource Configuration】
tidb-pd 4c8g
TiKV-01 4c8g
TiKV-02 4c8g
TiKV-03 4c8g
TiCDC 4c8g
TiFlash 8c16g
【Attachments: Screenshots/Logs/Monitoring】