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

Enrich write batch #379

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

v01dstar
Copy link

This is a cherry-pick of #177

Adding WriteBatch::Iterator and WriteBatchInternal:: AppendContents().

WriteBatchInternal::AppendContents() is used by TiKV to efficiently merge multiple write batches into a larger batch, thereby reducing overhead. This operation is particularly useful for avoiding unnecessary memory copies or decoding of data.

WriteBatch::Iterator is not being directly used by TiKV. But it is still kept.

@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 24, 2024
Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 26, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 27, 2024
@v01dstar v01dstar marked this pull request as draft September 27, 2024 03:16
@ti-chi-bot ti-chi-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 27, 2024
I want to use format of rocksdb::WriteBatch to encode key-value pairs of TiKV, and I need an more effective method to copy data from Entry to WriteBatch directly so that I could avoid CPU cost of decode.

Signed-off-by: Little-Wallace <[email protected]>
Signed-off-by: tabokie <[email protected]>
Signed-off-by: Yang Zhang <[email protected]>
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 27, 2024
@v01dstar v01dstar marked this pull request as ready for review September 27, 2024 06:32
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 27, 2024
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 27, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 27, 2024
Copy link

ti-chi-bot bot commented Sep 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Connor1996, glorv, LykxSassinator

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Connor1996,LykxSassinator,glorv]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 27, 2024
Copy link

ti-chi-bot bot commented Sep 27, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-26 08:01:18.42983109 +0000 UTC m=+1725748.170255028: ☑️ agreed by Connor1996.
  • 2024-09-27 03:10:53.828916709 +0000 UTC m=+1794723.569340648: ☑️ agreed by LykxSassinator.
  • 2024-09-27 06:32:38.463294094 +0000 UTC m=+1806828.203718053: ✖️🔁 reset by v01dstar.
  • 2024-09-27 07:07:52.860935664 +0000 UTC m=+1808942.601359615: ☑️ agreed by LykxSassinator.
  • 2024-09-27 07:11:21.471349686 +0000 UTC m=+1809151.211773624: ☑️ agreed by glorv.

@ti-chi-bot ti-chi-bot bot merged commit 96574bd into tikv:8.10.tikv Sep 27, 2024
5 checks passed
@v01dstar v01dstar deleted the enrich-write-batch branch September 27, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants