feat(audit): 重构oracle top sql功能#3036
Conversation
- 重构 DB 查询逻辑,支持按不同指标排序和筛选 - 更新审计计划列表的排序选项,增加多个指标- 修改 Oracle Top SQL 任务的参数配置,简化设置 -为度量指标添加可排序标记,提升用户体验
PR Reviewer Guide 🔍(Review updated until commit 9f300da)
|
PR Code Suggestions ✨Latest suggestions up to ce23fed Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 8a32ed3
Suggestions up to commit 05e37df
|
|
Persistent review updated to latest commit 8a32ed3 |
|
Persistent review updated to latest commit ce23fed |
|
Persistent review updated to latest commit 9f300da |
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
关联的 issue
https://github.com/actiontech/sqle-ee/issues/2356
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
新增 collectIntervalMinute 参数支持
优化 Top SQL 查询及资源释放
更新指标查询与排序逻辑
调整审计任务的排序标记
Changes walkthrough 📝
instance_audit_plan_list.go
更新 OrderByMap 字段映射规则sqle/model/instance_audit_plan_list.go
perf.go
调整 SQL 查询条件sqle/pkg/oracle/perf.go
task_type_oracle_topsql.go
更新审计任务参数配置sqle/server/auditplan/task_type_oracle_topsql.go
db.go
优化 QueryTopSQLs 查询函数sqle/pkg/oracle/db.go