-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enhance: Utilize coll2replica mapping when getting rg by collection #32892
enhance: Utilize coll2replica mapping when getting rg by collection #32892
Conversation
See also milvus-io#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 <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #32892 +/- ##
==========================================
+ Coverage 81.80% 81.81% +0.01%
==========================================
Files 1006 1006
Lines 126791 126787 -4
==========================================
+ Hits 103720 103730 +10
+ Misses 19138 19125 -13
+ Partials 3933 3932 -1
|
/lgtm |
…ilvus-io#32892) See also milvus-io#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 <[email protected]> Signed-off-by: Congqi Xia <[email protected]>
…tion (#32892) (#32922) Cherry-pick from master pr: #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 <[email protected]>
…ilvus-io#32892) See also milvus-io#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 <[email protected]> Signed-off-by: Congqi Xia <[email protected]>
See also #32165
In old
GetResourceGroupByCollection
implementation, it iterates allreplicas 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 [email protected]