2.0.15-QueryProfile sql执行时间和客户端纪录的执行时间不匹配

Viewed 19

在一次sql调优的过程中,尝试从QueryProfile中定位问题,但每一次QueryProfile和客户端纪录的sql执行时间不匹配
QueryProfile时间
image.png
image.png
客户端时间
image.png
image.png
但是 set enable_profile=false; 关闭变量后,客户端耗时正常。
image.png

1 Answers

你确认下queryid和查询是否是能对的上?看看审计日志里面的查询时间是怎么样的