Skip to content

perf: 审计风险列表优化-慢查询索引治理#1568

Open
0RAJA wants to merge 1 commit into
TencentBlueKing:mainfrom
0RAJA:codex/slow-query-index-governance
Open

perf: 审计风险列表优化-慢查询索引治理#1568
0RAJA wants to merge 1 commit into
TencentBlueKing:mainfrom
0RAJA:codex/slow-query-index-governance

Conversation

@0RAJA

@0RAJA 0RAJA commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 为 TicketPermission 增量拉取增加 authorized_at/id 索引并稳定分页顺序
  • 为 TicketNode running 状态同步增加 status/timestamp 组合索引
  • 补充权限快照和节点同步索引回归测试

Verification

  • 原工作区:.venv/bin/pre-commit run 通过
  • 原工作区:.venv/bin/python manage.py makemigrations --check --dry-run -> No changes detected
  • 原工作区:targeted pytest 3 passed
  • main worktree:makemigrations --check --dry-run -> No changes detected;targeted pytest 因临时 worktree 测试库连接 root@172.17.0.1 被拒绝,未能完成

- 为 TicketPermission 增量拉取增加时间索引并稳定分页顺序

- 为 TicketNode running 状态同步增加组合索引

- 补充权限快照和节点同步索引回归测试
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.83%. Comparing base (eec869f) to head (164d835).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1568   +/-   ##
=======================================
  Coverage   86.82%   86.83%           
=======================================
  Files         837      838    +1     
  Lines       51079    51099   +20     
=======================================
+ Hits        44351    44371   +20     
  Misses       6728     6728           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@0RAJA 0RAJA closed this Jun 1, 2026
@0RAJA 0RAJA reopened this Jun 1, 2026
@0RAJA 0RAJA closed this Jun 1, 2026
@0RAJA 0RAJA reopened this Jun 1, 2026
@0RAJA 0RAJA closed this Jun 1, 2026
@0RAJA 0RAJA reopened this Jun 1, 2026
@0RAJA 0RAJA closed this Jun 1, 2026
@0RAJA 0RAJA reopened this Jun 1, 2026
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

Successfully merging this pull request may close these issues.

2 participants