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

refactor: remove unique id #1872

Merged
merged 9 commits into from Feb 5, 2021
Merged

refactor: remove unique id #1872

merged 9 commits into from Feb 5, 2021

Conversation

florian-hoenicke
Copy link
Member

@florian-hoenicke florian-hoenicke commented Feb 4, 2021

Breaking Changes #1606

@florian-hoenicke florian-hoenicke requested a review from a team as a code owner February 4, 2021 21:28
@jina-bot jina-bot added size/M area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/client component/driver component/type labels Feb 4, 2021
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #1872 (29291a4) into master (28cc7c8) will increase coverage by 0.16%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1872      +/-   ##
==========================================
+ Coverage   86.17%   86.33%   +0.16%     
==========================================
  Files         146      145       -1     
  Lines        6982     6925      -57     
==========================================
- Hits         6017     5979      -38     
+ Misses        965      946      -19     
Impacted Files Coverage Δ
jina/executors/segmenters/__init__.py 91.66% <ø> (ø)
jina/flow/builder.py 73.91% <0.00%> (ø)
jina/types/sets/document.py 95.57% <ø> (+1.45%) ⬆️
jina/clients/request/helper.py 97.95% <100.00%> (+0.04%) ⬆️
jina/drivers/querylang/queryset/dunderkey.py 100.00% <100.00%> (ø)
jina/executors/indexers/cache.py 98.50% <100.00%> (ø)
jina/executors/indexers/keyvalue.py 100.00% <100.00%> (ø)
jina/executors/indexers/vector.py 93.75% <100.00%> (-0.04%) ⬇️
jina/flow/base.py 88.02% <100.00%> (ø)
jina/jaml/helper.py 93.89% <100.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28cc7c8...75e8fcf. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Feb 4, 2021

Latency summary

Current PR yields:

  • 🐎🐎 index QPS at 1189, delta to last 3 avg.: +6%
  • 🐢🐢 query QPS at 25, delta to last 3 avg.: -53%

Breakdown

Version Index QPS Query QPS
current 1189 25
0.9.28 1015 82
0.9.27 1219 24

Backed by latency-tracking. Further commits will update this comment.

jina/drivers/rank/__init__.py Outdated Show resolved Hide resolved
match_idx = [] # type: List[Tuple[UniqueId, UniqueId, UniqueId, float]]
query_meta = {} # type: Dict[UniqueId, Dict]
match_meta = {} # type: Dict[UniqueId, Dict]
match_idx = [] # type: List[Tuple[str, str, str, float]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these types assigned behind a comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but why are they comments in this case? They only reason to do that is if we want to support Python 2. Anyway, not a big deal

@hanxiao hanxiao merged commit 4e1db76 into master Feb 5, 2021
@hanxiao hanxiao deleted the refactor-remove-unique-id branch February 5, 2021 17:10
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.

None yet

6 participants