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

refactor: Automatically chunk large key sets in KVPbApi methods #16561

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Oct 2, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: Automatically chunk large key sets in KVPbApi methods
  • Modify KVPbApi::get_pb_vec() and KVPbApi::get_pb_values_vec()
    to automatically split large key sets into chunks of 256 keys

  • Simplifies caller logic by eliminating the need for manual key set splitting

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Refactoring

Related Issues


This change is Reviewable

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Oct 2, 2024
@drmingdrmer drmingdrmer force-pushed the 155-improve-failed-db branch 4 times, most recently from f32f0fa to 418192b Compare October 8, 2024 05:54
@drmingdrmer drmingdrmer marked this pull request as ready for review October 8, 2024 06:40
@drmingdrmer drmingdrmer requested review from TCeason and zhyass October 8, 2024 06:40
- Modify KVPbApi::get_pb_vec() and KVPbApi::get_pb_values_vec()
  to automatically split large key sets into chunks of 256 keys

- Simplifies caller logic by eliminating the need for manual key set splitting
@drmingdrmer drmingdrmer force-pushed the 155-improve-failed-db branch from 098cd10 to c345f9e Compare October 9, 2024 02:21
@drmingdrmer drmingdrmer merged commit 0c550c5 into databendlabs:main Oct 9, 2024
71 checks passed
@drmingdrmer drmingdrmer deleted the 155-improve-failed-db branch October 9, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants