-
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: reduce SyncTask AllocID call and refine code #29701
enhance: reduce SyncTask AllocID call and refine code #29701
Conversation
See also milvus-io#27675 `Allocator.Alloc` and `Allocator.AllocOne` might be invoked multiple times if there were multiple blobs set in one sync task. This PR add pre-fetch logic for all blobs and cache logIDs in sync task so that at most only one call of the allocator is needed. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
@congqixia ut workflow job failed, comment |
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #29701 +/- ##
==========================================
- Coverage 83.72% 80.80% -2.93%
==========================================
Files 679 922 +243
Lines 108623 127406 +18783
==========================================
+ Hits 90949 102948 +11999
- Misses 14361 21149 +6788
+ Partials 3313 3309 -4
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, xiaofan-luan 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 |
See also #27675
Allocator.Alloc
andAllocator.AllocOne
might be invoked multiple times if there were multiple blobs set in one sync task.This PR add pre-fetch logic for all blobs and cache logIDs in sync task so that at most only one call of the allocator is needed.