Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb数据库 SQL 执行时间远大于各项执行时间
Why is the SQL execution time much greater than the execution time of each item? Shouldn’t it be less than or equal to it?
Use trace to check which specific SQL statement it is.
Is this a query or a DML statement?
What does the specific SQL look like?
Is it DDL or DML, and does it have TiFlash?
As mentioned above, it’s parallel. Parallel means that multiple nodes are using the sum of the above time simultaneously.
Due to parallel execution, the SQL execution time may be much shorter than the aforementioned times. I don’t quite understand this sentence. I can understand parallelism, but this explanation says that the SQL execution time is much shorter than the aforementioned times.
Is there anything special about the SQL? Please send the text and execution plan.