-
Notifications
You must be signed in to change notification settings - Fork 37
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
Store object metadata in metabases for SearchV2 service #3080
base: master
Are you sure you want to change the base?
Conversation
cthulhu-rider
commented
Jan 13, 2025
•
edited
Loading
edited
- store metadata on Put
- unfiltered
- test scenarios for filtered
- filtered
- removal
9624b00
to
3540889
Compare
Signed-off-by: Leonard Lyubich <[email protected]>
3540889
to
baf055c
Compare
Signed-off-by: Leonard Lyubich <[email protected]>
f16c1c1
to
8957af6
Compare
) | ||
|
||
var ( | ||
maxUint256 = new(big.Int).SetBytes([]byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it 127, 255, 255...
? At least VM has signed 256-bit integers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, https://github.com/holiman/uint256 can be useful here, it's much faster than elastic big.Int
(refs nspcc-dev/neo-go#1581).
metaPrefixA = byte(iota) | ||
metaPrefixBI // integer attributes | ||
metaPrefixBS // all other attributes | ||
metaPrefixC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These better be named semantically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for sure, will do this finally. But for, now I'm used to naming from the task
var k []byte | ||
// TODO: move to global funcs | ||
makeKeyB := func(prefix byte, attr string, valLen int) (int, int) { | ||
ln := 1 + oid.Size + len(attr) + valLen + len(utf8Delimiter)*2 // TODO: constantize some stuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slices.Concat()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i thought about this. Will make code improvement after functionaly stabilization if u dont mind
41de769
to
c29b7e5
Compare
Signed-off-by: Leonard Lyubich <[email protected]>
c29b7e5
to
00c7b83
Compare