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

Don't check the hard limit on each insert #339

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

danielealbano
Copy link
Owner

When inserting keys, don't check if they will hit the hardlimit on each single insert as the keys eviction fiber has already a mechanism to enter an --extreme-- purging mode if the the hard limit is going to be hit very soon.

This check literally reduces the performances by 50% when doing pipelines inserts, has an impact as well when doing normal sets.

@danielealbano danielealbano added the bug Something isn't working label Apr 14, 2023
@danielealbano danielealbano added this to the v0.3 milestone Apr 14, 2023
@danielealbano danielealbano self-assigned this Apr 14, 2023
@danielealbano danielealbano added this to In Progress in cachegrand via automation Apr 14, 2023
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (b54e11d) 77.05% compared to head (14680dc) 77.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   77.05%   77.06%   +0.01%     
==========================================
  Files         179      179              
  Lines       12428    12414      -14     
==========================================
- Hits         9576     9566      -10     
+ Misses       2852     2848       -4     
Flag Coverage Δ
unittests 77.06% <ø> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
src/storage/db/storage_db.c 62.73% <ø> (+0.22%) ⬆️
src/storage/db/storage_db.h 30.77% <ø> (-10.41%) ⬇️

... and 1 file with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@danielealbano danielealbano merged commit 5418cc1 into main Apr 14, 2023
cachegrand automation moved this from In Progress to Completed Apr 14, 2023
@danielealbano danielealbano deleted the bug-dont-check-hard-limit-on-each-set branch April 14, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
cachegrand
  
Completed
Development

Successfully merging this pull request may close these issues.

None yet

1 participant