Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

直接使用explain记录来作为影响行数的结果 #2902

Open
LordofAvernus opened this issue Jan 24, 2025 · 0 comments
Open

直接使用explain记录来作为影响行数的结果 #2902

LordofAvernus opened this issue Jan 24, 2025 · 0 comments
Assignees
Milestone

Comments

@LordofAvernus
Copy link
Collaborator

LordofAvernus commented Jan 24, 2025

需求描述(Describe)

  1. 考虑直接使用explain的row来作为影响行数结果
    Imporve get sql affect row num #2889 (comment)
  2. 原本影响行数的功能是通过模拟SQL执行来获取的。为了避免出现性能问题通过explain来尝试获取到影响行数的结果并不准确,容易出现误判。
    • 通过explain type为ALL时/ 判断超过超时时间 直接给出错误提示。避免后续结果误判
    • 看是否有更合适的方式来确定sql的影响行数
  3. 修改执行计划前端展示实际影响的行数描述 @LZS911
    • 当前方案下,可能是显示的explain影响行数。需要调整文案【移除 区别于执行计划的rows列,补充文本 性能效率低的情况下会使用执行计划的预计影响行数 】
      Image

实现方案

变更影响面

受影响的模块或功能

外部引用的潜在问题或风险

版本兼容性

测试建议

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants