-
Notifications
You must be signed in to change notification settings - Fork 355
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
range_de for IndexMap #498
Conversation
@maurolacy Any idea what would be a good way to test |
A multi index that has a triple key would be good. That way you can confirm deserialization of the remaining of the key works. Take a look at the And, perhaps better to start with So, I would say:
Notice that for this triples test you'll need a couple of Finally, for completeness:
Hope that makes sense. Just ping me if you need further clarification. |
f226273
to
7391742
Compare
I'm going to pull the index stuff into a separate PR since Ethan asked for small PRs. |
I realize now my comments above are not totally correct. For unique indexes, when ranging / prefixing / sub-prefixing over the indexes of a For multi-indexes is different: There you'll get as key a tuple (or triple) of the (remaining) elements of the index key, and the corresponding pk. In this case, this format matches the index key; because the pk is being added to it. We could change that: by example, by returning only the (deserialized) pk. But, keeping with the current convention is better in terms of compatibility / consistency. Having the remaining elements of the index key may also be useful, to do extra filtering / ranging, by example. Finally: We could modify / extend |
That's what had me confused. I assumed you meant to suggest we implement
Ahh, so that makes it a bit tricky. Gotcha. |
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.
Base Map
impl.
Good to merge. It would be good to improve / clarify tests first.
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.
Nice.
Part of #461