Skip to content

Conversation

@LykxSassinator
Copy link
Contributor

This is a manual CP of #382

Background

PR #370 fixed a panic issue caused by concurrent updates to Memtable followed by reads on stale indexes. However, we observed that this fix introduced performance regressions under concurrent read/write workloads.

Issue

When fetch_entries_to retrieves a large batch of entries from disk, write operations are blocked until the read completes, delaying Memtable updates and degrading throughput.

Solution

This PR optimizes fetch_entries_to to reduce contention and improve performance under mixed workloads.

Results

Branch Status
Master image
This PR image

…ng. (tikv#382)

 

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 4, 2025
@LykxSassinator LykxSassinator requested review from glorv and overvenus July 4, 2025 10:20
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 4, 2025
@ti-chi-bot ti-chi-bot bot added the lgtm label Jul 4, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jul 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: glorv, overvenus

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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 Jul 4, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jul 4, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-07-04 10:24:30.974309486 +0000 UTC m=+1649723.697488453: ☑️ agreed by glorv.
  • 2025-07-04 11:23:07.881315435 +0000 UTC m=+1653240.604494409: ☑️ agreed by overvenus.

@ti-chi-bot ti-chi-bot bot merged commit 2f9f688 into tikv:tikv-8.5 Jul 4, 2025
6 checks passed
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.

3 participants