-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
How can I get the default CF_handle by C API? #12316
Comments
In C++, there is a straightforward API Line 1927 in 046ac91
A workaround would be to use this Lines 915 to 919 in 046ac91
Passing the |
Maybe we should add a C API to easy get the default CF_handle, as C API with "_cf" ending is hard to use and most time the default CF is enough, but "rocksdb_batched_multi_get_cf" must have it. Later I will make a submit to add the C API, the code is straightforward. |
I use RocksDB in C.
Now I need to multi_get a list of keys, there are two C API: rocksdb_multi_get and rocksdb_batched_multi_get_cf, notes tell that the later has performance improvement, but it need a cf arg<rocksdb_colume_family_handle_t> and this can not be NULL, as I only use the default cf, I can't find any API to get the default cf handle, more important, other C APIs I use are all no-cf arg, change them to cf-version is troublesome.
How can I get the CF_handle of default cf by C API? thanks!
The text was updated successfully, but these errors were encountered: