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(cache): use namespace.version as part of cache key #3743

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

erka
Copy link
Collaborator

@erka erka commented Dec 19, 2024

As namespace has a version which updates on each configuration changes
it makes sense to use it as part of the cache key. Changes focus on
improving the evaluation response time. All other API calls is not in a
critical path so there is very little benefits to cache them

@erka erka force-pushed the rd/cache-storage branch 3 times, most recently from 76e75be to 89ca41e Compare December 19, 2024 18:08
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 88.50000% with 23 lines in your changes missing coverage. Please review.

Project coverage is 64.86%. Comparing base (d3f98fb) to head (7661c30).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/storage/cache/cache.go 88.88% 15 Missing and 6 partials ⚠️
...al/server/evaluation/data/evaluation_store_mock.go 0.00% 1 Missing ⚠️
internal/server/evaluation/data/server.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3743      +/-   ##
==========================================
+ Coverage   64.61%   64.86%   +0.25%     
==========================================
  Files         170      170              
  Lines       17241    17359     +118     
==========================================
+ Hits        11140    11260     +120     
+ Misses       5406     5405       -1     
+ Partials      695      694       -1     
Flag Coverage Δ
unittests 64.86% <88.50%> (+0.25%) ⬆️

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.

@erka erka force-pushed the rd/cache-storage branch 3 times, most recently from 296f6c2 to 4587e3c Compare December 19, 2024 22:33
As namespace has a version which updates on each configuration changes
it makes sense to use it as part of the cache key. Changes focus on
improving the evaluation response time. All other API calls is not in a
critical path so there is very little benefits to cache them

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka erka marked this pull request as ready for review December 19, 2024 22:51
@erka erka requested a review from a team as a code owner December 19, 2024 22:51
Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

lgtm! thank you!!

@erka erka merged commit 676ac81 into main Dec 27, 2024
39 checks passed
@erka erka deleted the rd/cache-storage branch December 27, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants