-
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: allow configure the desired size and number of rows of each INSERT statement for logical mode #46997
lightning: allow configure the desired size and number of rows of each INSERT statement for logical mode #46997
Conversation
Signed-off-by: kennytm <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46997 +/- ##
=================================================
- Coverage 70.0546% 59.7416% -10.3131%
=================================================
Files 1444 1580 +136
Lines 419989 626600 +206611
=================================================
+ Hits 294222 374341 +80119
- Misses 105461 229461 +124000
- Partials 20306 22798 +2492
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
/hold new config require discuss with PM |
Signed-off-by: kennytm <[email protected]>
@Frank945946 create an FD? requires doc update |
ping @Frank945946 |
Signed-off-by: kennytm <[email protected]>
I will create a FD for v8.0 later |
Just for reference, the size limit is actually effectively capped to 96 KiB tidb/br/pkg/lightning/importer/import.go Lines 2229 to 2232 in 784fb19
but sometimes even a 96 KiB query is too large as disruption on production environment. Also I don't think |
removed SplitIntoChunks() from the Rows interface and also MaxChunkSize() from the Backend interface since the split logic is no longer shared. reduced default logical-import-batch-size from 1M to 96K to match reality.
/ok-to-test |
@kennytm: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
/unhold |
/test pull-lightning-integration-test |
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
/test pull-lightning-integration-test |
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
/retest |
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a lightning only change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the config
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BornChanger, D3Hunter, lance6716, Leavrth, yudongusa 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:
Approvers can indicate their approval by writing |
/cherry-pick release-7.5 |
Signed-off-by: ti-chi-bot <[email protected]>
@lance6716: new pull request created to branch In response to this:
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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #46607
Problem Summary:
What is changed and how it works?
Added a config values
tikv-importer.logical-import-batch-{size,rows}
which controls how big the INSERT statement would be when using logical mode.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.