Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TIDB 4.0.5 inner join查询慢
[TiDB Usage Environment] Production Environment
[TiDB Version] V4.05
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact]
We executed a simple SQL query with an inner join between two tables. The execution plan for the slow SQL in the dashboard is shown below. The operator IndexLookUp_48 took 4.2 seconds to execute, but the execution times of the sub-operators below it are very short. How can we determine where the execution time for IndexLookUp_48 is being spent?
[Resource Configuration]
Cluster Information: pd: 3 nodes, tidb: 3 nodes, tikv: 5 nodes
tidb_index_join_batch_size (default value: 25000
)
tidb_index_lookup_join_concurrency (default value: 4
)