Commit 9d1a800
[perf] #57 Preferred to chose index with auto_increment column when slave apply binlog
Description
-----------
In row binlog format, slave chose index when apply binlog use such order:
1) primary key
2) unique key without null columns
3) normal index or unique key with null columns
Actually, in situation 3 we should chose index with auto_increment column
first, after this patch, the new order is
1) primary key
2) unique key without null columns
3) normal index with auto_increment columns
4) normal index without auto_increment columns or unique key with null columns1 parent 229996d commit 9d1a800
5 files changed
Lines changed: 67 additions & 0 deletions
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9922 | 9922 | | |
9923 | 9923 | | |
9924 | 9924 | | |
| 9925 | + | |
| 9926 | + | |
| 9927 | + | |
| 9928 | + | |
| 9929 | + | |
| 9930 | + | |
| 9931 | + | |
| 9932 | + | |
| 9933 | + | |
| 9934 | + | |
| 9935 | + | |
| 9936 | + | |
| 9937 | + | |
| 9938 | + | |
9925 | 9939 | | |
9926 | 9940 | | |
9927 | 9941 | | |
| |||
0 commit comments