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: zero copy on split rows #3407

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

fengjiachun
Copy link
Collaborator

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

If a table has multiple regions, then when writing, it is necessary to split the data according to regions, which will incur memory copy overhead.
There is a scenario where the writes of the same client instance usually only contain data from one region (depending on the partition key). In this case, we should avoid memory copying.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Feb 28, 2024
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhongzc zhongzc left a comment

Choose a reason for hiding this comment

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

LGTM

@zhongzc zhongzc added this pull request to the merge queue Feb 28, 2024
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.61%. Comparing base (3413fc0) to head (e24e693).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3407      +/-   ##
==========================================
- Coverage   85.06%   84.61%   -0.45%     
==========================================
  Files         889      889              
  Lines      146280   146291      +11     
==========================================
- Hits       124428   123790     -638     
- Misses      21852    22501     +649     

Merged via the queue into GreptimeTeam:main with commit a3533c4 Feb 28, 2024
16 checks passed
@fengjiachun fengjiachun deleted the feat/zero-copy-split-rows branch February 28, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants