Skip to content

Conversation

@bigboss2063
Copy link
Member

@bigboss2063 bigboss2063 commented Nov 27, 2023

Previously, Record was used as a memory index item, which had many unnecessary fields placed in memory #505 . This time, all of them are removed. One record can save 22 bytes of memory usage!

At the same time, the interface of the BTree index type is modified. It no longer returns Entry, but directly returns Value of byte array type.

It can increase the ease of use. If users need to use other fields in Entry, we can provide an interface.

@codecov
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (df44d19) 71.27% compared to head (9eea860) 71.46%.

Files Patch % Lines
db.go 86.76% 2 Missing and 7 partials ⚠️
tx_btree.go 80.00% 2 Missing and 4 partials ⚠️
merge.go 33.33% 0 Missing and 2 partials ⚠️
tx.go 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #506      +/-   ##
==========================================
+ Coverage   71.27%   71.46%   +0.19%     
==========================================
  Files          35       35              
  Lines        5047     5032      -15     
==========================================
- Hits         3597     3596       -1     
+ Misses       1092     1080      -12     
+ Partials      358      356       -2     

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

@bigboss2063 bigboss2063 merged commit 2c1888c into nutsdb:master Nov 27, 2023
@bigboss2063 bigboss2063 deleted the ref_record branch December 20, 2023 08:12
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.

1 participant