Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

use OPTIMISTIC mode default #751

Closed
3pointer opened this issue Jun 17, 2020 · 1 comment · Fixed by #1079
Closed

use OPTIMISTIC mode default #751

3pointer opened this issue Jun 17, 2020 · 1 comment · Fixed by #1079
Labels
type/feature-request This issue is a feature request
Milestone

Comments

@3pointer
Copy link
Contributor

Feature Request

Is your feature request related to a problem? Please describe:

Starting from v3.0.8, newly created TiDB clusters use the pessimistic transaction model by default
but for dm we can set session level optimistic transaction as default to improve performance.

ref https://pingcap.com/docs/dev/pessimistic-transaction/
Describe the feature you'd like:

Add optimistic txn session config connect to TiDB

Describe alternatives you've considered:

And merge multiple statements into one statement with multiple values in one transaction would help to improve performance.
Teachability, Documentation, Adoption, Migration Strategy:

@csuzhangxc
Copy link
Member

from DM v1.0.6, it supports to set session variables in task.yaml.

but we may still change to use the optimistic transaction as default later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature-request This issue is a feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants