Skip to content

fix: native milvus len#885

Merged
JohannesMessner merged 3 commits intomainfrom
fix-milvus-len
Dec 5, 2022
Merged

fix: native milvus len#885
JohannesMessner merged 3 commits intomainfrom
fix-milvus-len

Conversation

@JohannesMessner
Copy link
Copy Markdown
Member

@JohannesMessner JohannesMessner commented Dec 2, 2022

Implement len (somewhat) natively for milvus, not retlying on offset2id.

Milvus has no real native way to get the number of entities in a collection, so we have to send a full-on general filter query with an expression that always evaluates to true, and then count the returns. Therefore this is only done if list-like is turned off.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 2, 2022

Codecov Report

Base: 88.13% // Head: 88.09% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (4f32ec6) compared to base (ae49969).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #885      +/-   ##
==========================================
- Coverage   88.13%   88.09%   -0.04%     
==========================================
  Files         138      138              
  Lines        7137     7148      +11     
==========================================
+ Hits         6290     6297       +7     
- Misses        847      851       +4     
Flag Coverage Δ
docarray 88.09% <50.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/storage/base/seqlike.py 89.36% <0.00%> (-2.13%) ⬇️
docarray/array/storage/milvus/seqlike.py 81.81% <57.14%> (-5.03%) ⬇️
docarray/document/mixins/video.py 57.57% <0.00%> (+3.47%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 5, 2022

📝 Docs are deployed on https://ft-fix-milvus-len--jina-docs.netlify.app 🎉

@JohannesMessner JohannesMessner merged commit 83d1bc5 into main Dec 5, 2022
@JohannesMessner JohannesMessner deleted the fix-milvus-len branch December 5, 2022 09:39
@anna-charlotte anna-charlotte linked an issue Dec 5, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Milvus misses implementation of __len__

3 participants