Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 慢sql执行分析,前序执行耗时较长,如何定位原因

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] v6.5.1
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact] When entering the TiDB Dashboard slow query analysis interface and viewing the execution time analysis of slow queries, it is found that the execution time of many “insert on duplicate key” type SQLs is mostly spent on the pre-execution time. Could you please explain the reason for this?