-
Notifications
You must be signed in to change notification settings - Fork 188
performance: use OPTIMISTIC transaction as the default #1079
Conversation
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.
rest LGTM
LGTM |
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.
rest LGTM
dm/config/task.go
Outdated
|
||
// TargetDBConfig | ||
defaultSessionCfg = map[string]string{ | ||
tidbTxnMode: tidbTxnOptimistic, |
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.
Does a lower version of TiDB without optimistic TXN works well (or without interrupt)?
/run-all-tests |
This reverts commit 614def3.
/run-all-tests |
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.
rest LGTM
LGTM |
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.
rest LGTM
cfgs[i] = cfg | ||
} | ||
return cfgs, nil | ||
} | ||
|
||
func adjustTargetDB(ctx context.Context, dbConfig *config.DBConfig) error { |
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.
How about putting this function into task.go
as a member of TaskConfig
? we may need to use it in other places later.
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.
circle import if move it to task.go because we import config in pkg.conn. 🤔
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
cherry pick to release-2.0 in PR #1107 |
Co-authored-by: gmhdbjd <[email protected]>
What problem does this PR solve?
close #751
What is changed and how it works?
set default transaction mode to optimistic
Check List
Tests
verify with different session cfg and run
show variables