8000 feat: add cache stats for new cache by wjones127 · Pull Request #4024 · lancedb/lance · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add cache stats for new cache #4024

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

Merged
merged 3 commits into from
Jun 19, 2025
Merged

Conversation

wjones127
Copy link
Contributor
@wjones127 wjones127 commented Jun 17, 2025

This can be used to compute the hit and miss rate of the caches.

@github-actions github-actions bot added enhancement New feature or request python java labels Jun 17, 2025
@codecov-commenter
Copy link
codecov-commenter commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 95.74468% with 6 lines in your changes missing coverage. Please review.

Project coverage is 78.68%. Comparing base (8b6ee90) to head (f4f8401).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
rust/lance-core/src/cache.rs 97.82% 0 Missing and 3 partials ⚠️
rust/lance/src/session.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4024      +/-   ##
==========================================
- Coverage   78.69%   78.68%   -0.01%     
==========================================
  Files         285      285              
  Lines      113487   113471      -16     
  Branches   113487   113471      -16     
==========================================
- Hits        89305    89289      -16     
- Misses      20746    20761      +15     
+ Partials     3436     3421      -15     
Flag Coverage Δ
unittests 78.68% <95.74%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wjones127 wjones127 marked this pull request as ready for review June 19, 2025 15:53
Comment on lines 219 to 223
#[derive(Debug, Clone)]
pub struct CacheStats {
pub hits: u64,
pub misses: u64,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably self-evident but maybe briefly document this struct since it goes out the public API.

@wjones127 wjones127 merged commit 6b7771a into lancedb:main Jun 19, 2025
15 checks passed
@wjones127 wjones127 deleted the cache-stats branch June 19, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0