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

feat: use get_batch to implement get_range #971

Merged
merged 4 commits into from
Jun 7, 2023

Conversation

MichaelLeeHZ
Copy link
Contributor

Rationale

Now the implementation of get_range in ObjectStore based on OBKV may cause extra IO operation, the better way is to let table_kv provide a api get_batch to avoid this.

Detailed Changes

  • Add a api get_batch in table_kv
  • use get_batch implement get_range in ObjectStore based on OBKV

Test Plan

By unit tests

@MichaelLeeHZ MichaelLeeHZ marked this pull request as ready for review June 6, 2023 08:17
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShiKaiWi ShiKaiWi merged commit 0d8143a into apache:main Jun 7, 2023
dust1 pushed a commit to dust1/ceresdb that referenced this pull request Aug 9, 2023
## Rationale
Now the implementation of `get_range` in `ObjectStore` based on `OBKV`
may cause extra IO operation, the better way is to let table_kv provide
an API `get_batch` to avoid this.

## Detailed Changes
* Add an API `get_batch` in table_kv
* use `get_batch` implement `get_range` in `ObjectStore` based on `OBKV`

## Test Plan
By unit tests
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

Successfully merging this pull request may close these issues.

2 participants