It seems there’s not such interface..
Do I have to iterate all keys to get the count?
What is the design purpose of that? Or what is the limitation of implement this feature?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“There is no way to implement Count more efficiently inside leveldb than outside.” states offical issue 113
Looks like there is no better way to do it, except for either iterating through the whole dataset or implementing your own in-application on-write counter.