Skip to content

Commit

Permalink
perf(backend): 优化全局搜索效率 TencentBlueKing#7822
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 authored and iSecloud committed Nov 8, 2024
1 parent a63cd7c commit daa098f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbm-ui/backend/db_services/quick_search/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def filter_instance(self, keyword_list: list):

def filter_task(self, keyword_list: list):
"""过滤任务"""
qs = self.generate_filter_for_str("root_id", keyword_list)
objs = FlowTree.objects.filter(qs)
objs = FlowTree.objects.filter(root_id__in=keyword_list)

if self.bk_biz_ids:
objs = objs.filter(bk_biz_id__in=self.bk_biz_ids)
Expand Down

0 comments on commit daa098f

Please sign in to comment.