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

fix: filtering missing keys accounts for values #1694

Merged
merged 2 commits into from Jan 15, 2021

Conversation

cristianmtr
Copy link
Contributor

No description provided.

Copy link
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

When this passes, please pay attention to next jina hub update since ZarrIndexer may be sensitive to this change

@@ -162,17 +162,31 @@ def flush(self):
except:
pass

def _filter_nonexistent_keys(self, keys: Iterator, existent_keys: Iterator, check_path: str):
indices_to_drop = []
def _filter_nonexistent_keys_values(self, keys: Iterator, values: Iterator, existent_keys: Iterator, check_path: str) -> Tuple[List, List]:
Copy link
Member

Choose a reason for hiding this comment

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

can the typehints be more specific as per which kind of iterators it gets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really. Each of the indexers have their own types. I had to add IgnoreWarnings comment on some

jina/executors/indexers/cache.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 14, 2021

Codecov Report

Merging #1694 (abd2aff) into master (90b779d) will increase coverage by 0.24%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1694      +/-   ##
==========================================
+ Coverage   84.82%   85.07%   +0.24%     
==========================================
  Files         133      133              
  Lines        6833     6833              
==========================================
+ Hits         5796     5813      +17     
+ Misses       1037     1020      -17     
Impacted Files Coverage Δ
jina/executors/indexers/keyvalue.py 98.68% <100.00%> (ø)
jina/peapods/runtimes/jinad/api.py 86.84% <0.00%> (+11.18%) ⬆️

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 90b779d...1d196d1. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Jan 14, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1702, delta to last 3 avg.: +1%
  • 😶 query QPS at 32, delta to last 3 avg.: -2%

Breakdown

Version Index QPS Query QPS
current 1702 32
0.9.13 1634 32
0.9.12 1702 33

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

@hanxiao hanxiao merged commit 321a890 into master Jan 15, 2021
@hanxiao hanxiao deleted the fix-mising-keys-indices branch January 15, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants