-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add content about lazy uniqueness check #11166
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
13d0c27
to
ec19dab
Compare
736085d
to
0642b6c
Compare
0642b6c
to
1767f67
Compare
Signed-off-by: ekexium <eke@fastmail.com>
1767f67
to
09b7fd2
Compare
b93059c
to
ce85c29
Compare
Signed-off-by: ekexium <eke@fastmail.com>
ce85c29
to
2e4e5af
Compare
Co-authored-by: Grace Cai <qqzczy@126.com>
565d3fb
to
1658635
Compare
Signed-off-by: ekexium <eke@fastmail.com>
1658635
to
f7a646a
Compare
Signed-off-by: ekexium <eke@fastmail.com>
Signed-off-by: ekexium <eke@fastmail.com>
43633ab
to
cbb58b1
Compare
Co-authored-by: Grace Cai <qqzczy@126.com> Co-authored-by: xixirangrang <hfxsd@hotmail.com>
Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: xixirangrang <hfxsd@hotmail.com>
constraints.md
Outdated
ERROR 1062 (23000): Duplicate entry 'bill' for key 'username' | ||
``` | ||
|
||
对于悲观事务,你可以设置变量 [`tidb_constraint_check_in_place_pessimistic`](/system-variables.md#tidb_constraint_check_in_place_pessimistic-从-v630-版本开始引入) 为 `0` 来推迟唯一约束检查,到下一次对该唯一索引项加锁时或事务提交时再进行检查,同时也跳过对该悲观锁加锁,以获得更好的性能。此时需要注意: |
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.
“以获得更好的性能” 建议改成 “在批量操作时获得更好的性能”
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 |
Signed-off-by: ekexium <eke@fastmail.com>
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
Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5815435
|
Signed-off-by: ekexium eke@fastmail.com
First-time contributors' checklist
What is changed, added or deleted? (Required)
Add content about the new feature lazy uniqueness check.
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?