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

Hash index cleanup #3088

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Hash index cleanup #3088

merged 2 commits into from
Mar 22, 2024

Conversation

benjaminwinger
Copy link
Collaborator

A couple of minor changes to the hash index. I've updated the HashIndex to use one template parameter like the HashIndexBuilder, and I've made SlotEntry store key/value instead of just a data byte array. We can still use memcpy to copy both together, but it provides an easier to read way of accessing and updating the key and value.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 94.93671% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 92.71%. Comparing base (c3decc2) to head (5267f00).
Report is 5 commits behind head on master.

Files Patch % Lines
src/include/storage/index/hash_index.h 85.71% 2 Missing ⚠️
src/storage/index/hash_index.cpp 95.91% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3088      +/-   ##
==========================================
+ Coverage   92.66%   92.71%   +0.04%     
==========================================
  Files        1157     1157              
  Lines       43074    43037      -37     
==========================================
- Hits        39916    39901      -15     
+ Misses       3158     3136      -22     

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

Copy link
Contributor

@ray6080 ray6080 left a comment

Choose a reason for hiding this comment

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

LGTM

@benjaminwinger benjaminwinger merged commit c8e4d5b into master Mar 22, 2024
17 checks passed
@benjaminwinger benjaminwinger deleted the hash-index-cleanup branch March 22, 2024 19:54
ray6080 pushed a commit that referenced this pull request Mar 23, 2024
* Make HashIndex use only one template parameter

* Store key and value explicitly in hash index slots
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