如何快速找到数据库某条慢sql是什么地方生成的? #2117
coolqingcheng
started this conversation in
General
Replies: 1 comment
-
|
fsql.Aop.CommandBefore 可以修改 e.Command.CommandText |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
因为运维经常会发慢sql来让开发解决。但是生成的sql,如果不是自己写的代码很难知道是哪儿生成的,有没有办法可以在生sql的时候加一个tag。
比如:/tag/ select * from table,这样的方式。
我试了一下fsql.Aop.CurdBefore的sql无法修改,其他的方式也暂时没找到。
有没有大佬知道怎么处理这种情况???
Beta Was this translation helpful? Give feedback.
All reactions