milvus/internal/querycoordv2
congqixia efa58ae423
enhance: Utilize coll2replica mapping when getting rg by collection (#32892)
See also #32165

In old `GetResourceGroupByCollection` implementation, it iterates all
replicas to match collection id, which is slow and CPU time consuming.
This PR make it utilize the coll2Replicas mapping by calling
`GetByCollection` and mapping replicas into resource group.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-05-09 19:37:30 +08:00
..
balance enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
checkers enhance: enable stopping balance after balance has been suspended (#32812) 2024-05-08 10:15:29 +08:00
dist enhance: Avoid iteration over channel results when update leaderview (#32887) 2024-05-09 15:41:30 +08:00
job enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
meta enhance: Utilize coll2replica mapping when getting rg by collection (#32892) 2024-05-09 19:37:30 +08:00
mocks enhance:Refactor hybrid search (#32020) 2024-04-09 14:21:18 +08:00
observers enhance: update shard leader cache when leader location changed (#32470) 2024-05-08 10:05:29 +08:00
params Moving etcd client into session (#27069) 2023-10-27 07:36:12 +08:00
session enhance: Add restful api for devops to execute rolling upgrade (#29998) 2024-03-27 16:15:19 +08:00
task enhance: Remove duplicated collectionID label for task latency (#32308) 2024-04-16 18:55:19 +08:00
utils enhance: update shard leader cache when leader location changed (#32470) 2024-05-08 10:05:29 +08:00
api_testonly.go test: support segment release in integration test (#31190) 2024-04-09 11:39:17 +08:00
handlers.go enhance: update shard leader cache when leader location changed (#32470) 2024-05-08 10:05:29 +08:00
ops_service_test.go enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
ops_services.go enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
OWNERS
server_test.go enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
server.go enhance: update shard leader cache when leader location changed (#32470) 2024-05-08 10:05:29 +08:00
services_test.go fix: get replica should not report error when no querynode serve (#32536) 2024-04-25 19:25:24 +08:00
services.go enhance: update shard leader cache when leader location changed (#32470) 2024-05-08 10:05:29 +08:00