-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.sig/executionSIG executionSIG executiontype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
According to the above CPU flame graph, most of the time spends on rewriteAstExpr.
The root cause is that the ASTs of assignment expressions in load data are rewritten for each row, which may make the load data super slow.
#43492 has already fixed this issue, but only the TiDB clusters whose versions are greater than or equal to v7.2 contain this pr. In addition, there are some PR for load data code refactoring in v7.1.
So a tiny fix for this issue is needed for the previous TiDB version.
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.sig/executionSIG executionSIG executiontype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.