-
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
*: make load data atomic by default #18807
Conversation
Signed-off-by: Tina Fritz <tina77fritz@gmail.com>
/run-check_dev_2 |
emm... it will reach the transaction size limit if it is really a large transaction. The user will make a choice himself.
|
There will be memory usage for the executor itself, for example the data processing and cache may use some memory, and then they will be written into the transaction memory buffer. We could do some loading tests to check memory usage like #15369. Could you help us with this check and the memory usage optimization, many thanks. |
Maybe I have no time to optimize the memory usage for it :) |
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
Yes, I think after we change the default value to one transaction, we need to change the load logic from |
LGTM |
/merge |
/run-all-tests |
@tina77fritz merge failed. |
Codecov Report
@@ Coverage Diff @@
## master #18807 +/- ##
===========================================
Coverage 79.2776% 79.2776%
===========================================
Files 546 546
Lines 148632 148632
===========================================
Hits 117832 117832
Misses 21309 21309
Partials 9491 9491 |
/merge |
/run-all-tests |
/run-all-tests |
/merge |
/run-all-tests |
Signed-off-by: Tina Fritz tina77fritz@gmail.com
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
load data
uses several transactions by default which will break transaction atomic property.What is changed and how it works?
Proposal: xxx
What's Changed:
How it Works:
If
tidb_dml_batch_size = 0
,load data
will atomic and make it default.Related changes
Check List
Tests
Side effects
Release note