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

kv: LoadRange returns both keys and values #1508

Merged
merged 3 commits into from Apr 18, 2019
Merged

Conversation

disksing
Copy link
Contributor

Signed-off-by: disksing i@disksing.com

What problem does this PR solve?

The kv.LoadRange API is strange as it does not returns the keys so user is not able to scan next batch.

What is changed and how it works?

Return both keys and values.

Check List

Tests

  • Unit test

Signed-off-by: disksing <i@disksing.com>
@disksing disksing added the type/enhancement The issue belongs to an enhancement. label Apr 17, 2019
Signed-off-by: disksing <i@disksing.com>
@c4pt0r c4pt0r assigned c4pt0r and unassigned c4pt0r Apr 17, 2019
@c4pt0r c4pt0r self-requested a review April 17, 2019 07:25
@siddontang
Copy link
Contributor

can we provide a KVPair struct?

@nolouch
Copy link
Contributor

nolouch commented Apr 17, 2019

/rebuild

@c4pt0r
Copy link
Contributor

c4pt0r commented Apr 18, 2019

@siddontang it's better now, I would say we can merge this PR, and do more optimizations in the future.

@c4pt0r c4pt0r merged commit 6664398 into tikv:master Apr 18, 2019
@disksing disksing deleted the kvbase branch September 23, 2019 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants