Skip to content

dble中执行语句慢,怎么排查 #2958

Answered by Dinosauria
PanternBao asked this question in Q&A
Discussion options

You must be logged in to vote

排查方向:

  1. 使用trace https://actiontech.github.io/dble-docs-cn/2.Function/2.21_query_trace.html
  2. 开启dble的慢日志 https://actiontech.github.io/dble-docs-cn/2.Function/2.20_slow_query_log.html (@@slow_query.time=200 慢查询统计阈值,单位是毫秒)

找出具体哪个环节耗时较多

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yanhuqing666
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants