-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
lightning: set block size for pebble SSTWriter #59010
base: master
Are you sure you want to change the base?
Conversation
Hi @joechenrh. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #59010 +/- ##
================================================
+ Coverage 73.0285% 73.4412% +0.4127%
================================================
Files 1684 1716 +32
Lines 465663 479643 +13980
================================================
+ Hits 340067 352256 +12189
- Misses 104691 105565 +874
- Partials 20905 21822 +917
Flags with carried forward coverage won't be shown. Click here to find out more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: close #59014
Problem Summary:
For local sort using pebbles, it seems like the default block size (16K) is only set in index engine.
tidb/lightning/pkg/importer/table_import.go
Lines 460 to 465 in 543c334
What changed and how does it work?
Set
BlockSize
torc.cfg.TikvImporter.BlockSize
.Test was done on my local machine, which using lightning to import a single csv with 2 million rows and 250 columns.
In order to make a relatively fair comparison, I cleared the data and restart the cluster using tiup before each test.
Before:
After:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.