-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Adding a generic stream payload reader #30682
enhance: Adding a generic stream payload reader #30682
Conversation
@tedxu Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco. |
Benchmark result on my laptop:
The result shows that DataSetReader from #30407 and ArrowRecordReader both require no additional memory. |
Signed-off-by: Ted Xu <[email protected]>
20a21ce
to
342e0ab
Compare
@tedxu E2e jenkins job failed, comment |
@tedxu ut workflow job failed, comment |
Signed-off-by: Ted Xu <[email protected]>
@@ -1007,43 +1007,38 @@ func (deleteCodec *DeleteCodec) Deserialize(blobs []*Blob) (partitionID UniqueID | |||
if err != nil { | |||
return InvalidUniqueID, InvalidUniqueID, nil, err | |||
} | |||
defer binlogReader.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defer close will cause that Reader close after all blobs deserialize finished, but old codes support close Reader if a blob deserialize finished.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #30682 +/- ##
==========================================
- Coverage 80.43% 80.41% -0.02%
==========================================
Files 966 966
Lines 136767 136748 -19
==========================================
- Hits 110006 109971 -35
- Misses 23037 23048 +11
- Partials 3724 3729 +5
|
Signed-off-by: Ted Xu <[email protected]>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, tedxu 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: #30404