Skip to content
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: speed up GetByCollectionAndNode #32232

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

yiwangdr
Copy link
Contributor

Related to #32165

Avoid iterating through all replicas/collections if possible. Iteration is expensive when there are large number of replicas/collections.

Signed-off-by: yiwangdr <yiwangdr@gmail.com>
@sre-ci-robot sre-ci-robot added the size/XS Denotes a PR that changes 0-9 lines. label Apr 12, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Apr 12, 2024
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.75%. Comparing base (789e014) to head (424f2d6).
Report is 63 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #32232      +/-   ##
==========================================
+ Coverage   81.68%   81.75%   +0.06%     
==========================================
  Files         990      997       +7     
  Lines      121713   123433    +1720     
==========================================
+ Hits        99422   100907    +1485     
- Misses      18483    18667     +184     
- Partials     3808     3859      +51     
Files Coverage Δ
internal/querycoordv2/meta/replica_manager.go 82.35% <100.00%> (+0.16%) ⬆️

... and 95 files with indirect coverage changes

@mergify mergify bot added the ci-passed label Apr 12, 2024
@yiwangdr yiwangdr requested a review from czs007 April 15, 2024 16:36
Copy link
Contributor

@congqixia congqixia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, yiwangdr

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 7deda4d into milvus-io:master Apr 17, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants