Skip to content
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

Feature request: return found keys without values #44

Closed
davies opened this issue Apr 3, 2020 · 5 comments
Closed

Feature request: return found keys without values #44

davies opened this issue Apr 3, 2020 · 5 comments

Comments

@davies
Copy link

davies commented Apr 3, 2020

Sometimes, we may just want the list of keys, then fetch the value for selected ones. The current API will return both keys and values, which is very slow if value is large.

@disksing
Copy link
Collaborator

disksing commented Apr 5, 2020

Hi @davies , if you are using the txn API, you can try the KeyOnly option:

case kv.KeyOnly:

@davies
Copy link
Author

davies commented Apr 6, 2020

We are using the rawkv API, can we mixed them (only use txn API to scan) ?

@disksing
Copy link
Collaborator

disksing commented Apr 7, 2020

They cannot be used in same cluster together. It is possible to support some options for rawkv api, the problems is that is it not on our roadmap. I'd like to create a help-needed issue for now. You may consider lend a hand if too :-)

@Connor1996
Copy link
Member

Once tikv/tikv#7614 finished, you can leverage it to reduce io cost.

@disksing
Copy link
Collaborator

Looks it is cancelled on server side. closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants