-
Notifications
You must be signed in to change notification settings - Fork 8
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
Some thoughts on generic keys #10
Comments
Curious to know if this may happen. Would be great to support arbitrary size keys. With experience building congee, I just wanted to know if turning blart (https://github.com/declanvk/blart) into a concurrent version would be easier than modifying congee to support arbitrary size keys or vice versa. Any insights will be helpful, thanks. |
Hi @MirroredLens , thank you for the interests in Congee. I'm currently not actively working on congee. |
Hello @XiangpengHao, sad to hear that you're no longer actively working on congee. Can you give me any advice on how to add variable length keys for congee? Thanks. |
Sorry for the late reply! |
Sounds hard to keep the optimizations intact. Just curious if you might implement this someday or if it's not within the need or scope of the project. Thanks. |
Current generic key support in Congee is broken: every key type is stored as
usize
and compared asusize
. The ordering of the original generic key is ignored.ART is a radix tree and implicitly assumes keys to be strings. It supports integer numbers because it happens to have a meaningful byte-order (depending on the endian).
Therefore only two types of keys are meaningful to Congee: string and integer numbers. In fact, production database may only support string keys as the index (e.g., BigTable).
In the future, Congee will only support string. Support for integer numbers will be a syntax sugar.
The text was updated successfully, but these errors were encountered: