-
Notifications
You must be signed in to change notification settings - Fork 710
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
Custom Comparators #10
Comments
Added: #13 I'm a bit unfamiliar with the comparator, could you modify the test in comparator.rs so that it covers your desired use-case? Bonus points for a short usage example in the readme with an example of how the comparator can assist with this interesting problem. |
Basically, I'd like to initialize the DB w/ a "serialization config", so that you can have a designated pair of K & V types with custom-defined serialization & comparator, so that it's possible to use RocksDB with crazy types. For instance, I've often wanted keys which are actually a list of many variable-length lexographically or ordinally ordered elements. For instance, a key of the form Another thing I'd like is to store multiple distinct keyspaces in the same RocksDB, in order to take advantage of the atomic writes to a single db and key multiple indices on the in sync. I will write some code for this in a bit--I want to figure out the iterator first :) |
…-opt option: add max_bytes_for_level_base option
Hello, I'm interested in custom comparator support. I would like to be able to specify keys as lists of sorted keys. This way, I could do prefix lookups on multiple levels of variable-length prefixes. This indexing scheme is critical for building EAV database indices like Datomic (a functional DB) use.
The text was updated successfully, but these errors were encountered: