-
Notifications
You must be signed in to change notification settings - Fork 359
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
Secondary index composite key #196
Conversation
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.
First review on WIP
let mut store = MockStorage::new(); | ||
let mut map = build_map(); | ||
|
||
// save data |
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.
I would pull this out into a setup function as I see this in 3 tests or so.
|
||
/// MARKER is stored in the multi-index as value, but we only look at the key (which is pk) | ||
const MARKER: u32 = 1; | ||
// FIXME: Re-introduce this for MultiIndex | ||
// const MARKER: bool = true; |
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.
Where did this go?
btw, I used 1u32 as it has the smallest json representation (1
vs true
)
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.
I did this to make prefix()
work. prefix()
returns Prefix<T>
, so I needed the value type to match.
That said, this is just temporary, and towards a solution.
Closing in favour of #211. |
From @maurolacy so I can comment
After discussion, this is either very difficult or impossible with current API and encoding schemes.
We may need to differentiate VarLength indexes and FixedLength indexes