Skip to content

Storages: enhance data sharing column cache#9661

Merged
ti-chi-bot[bot] merged 11 commits intopingcap:masterfrom
Lloyd-Pottiger:enhance-dsc
Nov 27, 2024
Merged

Storages: enhance data sharing column cache#9661
ti-chi-bot[bot] merged 11 commits intopingcap:masterfrom
Lloyd-Pottiger:enhance-dsc

Conversation

@Lloyd-Pottiger
Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger commented Nov 20, 2024

What problem does this PR solve?

Issue Number: close #6092

Problem Summary:

Using ColumnCache whose cache entry is a pack. ColumnSharingCache's cache entry is several packs.

What is changed and how it works?


Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 20, 2024
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Co-authored-by: jinhelin <linjinhe33@gmail.com>
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Nov 26, 2024
Lloyd-Pottiger and others added 3 commits November 27, 2024 12:34
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@JaySon-Huang
Copy link
Contributor

JaySon-Huang commented Nov 27, 2024

Remove the duplicate code of getting data type on disk in different places: Lloyd-Pottiger#19

@ti-chi-bot ti-chi-bot bot added the lgtm label Nov 27, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Nov 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JaySon-Huang, JinheLin

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:
  • OWNERS [JaySon-Huang,JinheLin]

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 Nov 27, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Nov 27, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-26 10:11:21.686748028 +0000 UTC m=+544869.306402544: ☑️ agreed by JinheLin.
  • 2024-11-27 09:39:23.789798066 +0000 UTC m=+629351.409452582: ☑️ agreed by JaySon-Huang.

@ti-chi-bot ti-chi-bot bot merged commit 9dd3f9a into pingcap:master Nov 27, 2024
@Lloyd-Pottiger Lloyd-Pottiger deleted the enhance-dsc branch November 27, 2024 14:23
ti-chi-bot bot added a commit that referenced this pull request Mar 14, 2025
ref #6092

Fix related regression caused by #9661

Before, one query reads pack [start, end) from disk, and add it them to cache, 
meanwhile another query also requests to read pack [start, end), then it need to copy each pack data to a new column.

Now, return the cached column directly.

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>

Co-authored-by: JaySon-Huang <tshent@qq.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
JaySon-Huang added a commit to ti-chi-bot/tiflash that referenced this pull request Mar 26, 2025
ref pingcap#6092

Fix related regression caused by pingcap#9661

Before, one query reads pack [start, end) from disk, and add it them to cache, 
meanwhile another query also requests to read pack [start, end), then it need to copy each pack data to a new column.

Now, return the cached column directly.

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>

Co-authored-by: JaySon-Huang <tshent@qq.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
yongman pushed a commit to yongman/tiflash that referenced this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Further Improvement of Read Thread and Data Sharing

4 participants