@@ -1285,6 +1285,7 @@ explain select * from t1,t2 where t1.a=t2.b+2 and t2.a= t1.b {
1285
1285
],
1286
1286
"chosen_access_method": {
1287
1287
"type": "ref",
1288
+ "index": "a",
1288
1289
"rows_read": 1,
1289
1290
"rows_out": 1,
1290
1291
"cost": 0.1821659,
@@ -1340,6 +1341,7 @@ explain select * from t1,t2 where t1.a=t2.b+2 and t2.a= t1.b {
1340
1341
],
1341
1342
"chosen_access_method": {
1342
1343
"type": "ref",
1344
+ "index": "a",
1343
1345
"rows_read": 1,
1344
1346
"rows_out": 1,
1345
1347
"cost": 0.1821659,
@@ -2533,6 +2535,7 @@ explain select * from t1 where a=1 and b=2 order by c limit 1 {
2533
2535
],
2534
2536
"chosen_access_method": {
2535
2537
"type": "ref",
2538
+ "index": "a_b",
2536
2539
"rows_read": 41,
2537
2540
"rows_out": 41,
2538
2541
"cost": 0.051379171,
@@ -3012,6 +3015,7 @@ explain select * from t1 left join t2 on t2.a=t1.a {
3012
3015
],
3013
3016
"chosen_access_method": {
3014
3017
"type": "eq_ref",
3018
+ "index": "PRIMARY",
3015
3019
"rows_read": 1,
3016
3020
"rows_out": 1,
3017
3021
"cost": 0.007120904,
@@ -3980,6 +3984,7 @@ explain select * from t1 where pk = 2 and a=5 and b=1 {
3980
3984
],
3981
3985
"chosen_access_method": {
3982
3986
"type": "ref",
3987
+ "index": "pk_a_b",
3983
3988
"rows_read": 1,
3984
3989
"rows_out": 1,
3985
3990
"cost": 0.000928812,
@@ -4676,6 +4681,7 @@ explain delete t0,t1 from t0, t1 where t0.a=t1.a and t1.a<3 {
4676
4681
],
4677
4682
"chosen_access_method": {
4678
4683
"type": "range",
4684
+ "index": "a",
4679
4685
"rows_read": 3,
4680
4686
"rows_out": 3,
4681
4687
"cost": 0.001755494,
@@ -4702,6 +4708,7 @@ explain delete t0,t1 from t0, t1 where t0.a=t1.a and t1.a<3 {
4702
4708
],
4703
4709
"chosen_access_method": {
4704
4710
"type": "range",
4711
+ "index": "a",
4705
4712
"rows_read": 3,
4706
4713
"rows_out": 3,
4707
4714
"cost": 0.001755494,
@@ -4744,6 +4751,7 @@ explain delete t0,t1 from t0, t1 where t0.a=t1.a and t1.a<3 {
4744
4751
],
4745
4752
"chosen_access_method": {
4746
4753
"type": "ref",
4754
+ "index": "a",
4747
4755
"rows_read": 1,
4748
4756
"rows_out": 1,
4749
4757
"cost": 0.002376836,
@@ -4795,6 +4803,7 @@ explain delete t0,t1 from t0, t1 where t0.a=t1.a and t1.a<3 {
4795
4803
],
4796
4804
"chosen_access_method": {
4797
4805
"type": "ref",
4806
+ "index": "a",
4798
4807
"rows_read": 1.166666667,
4799
4808
"rows_out": 1.166666667,
4800
4809
"cost": 0.002392836,
@@ -11275,6 +11284,7 @@ JS
11275
11284
"chosen_access_method":
11276
11285
{
11277
11286
"type": "ref",
11287
+ "index": "b",
11278
11288
"rows_read": 1,
11279
11289
"rows_out": 1,
11280
11290
"cost": 0.01901531,
@@ -11521,6 +11531,7 @@ JS
11521
11531
"chosen_access_method":
11522
11532
{
11523
11533
"type": "ref",
11534
+ "index": "a",
11524
11535
"rows_read": 1,
11525
11536
"rows_out": 1,
11526
11537
"cost": 0.01840091,
@@ -12906,6 +12917,7 @@ json_detailed(json_extract(trace, '$**.choose_best_splitting'))
12906
12917
"chosen_access_method":
12907
12918
{
12908
12919
"type": "ref",
12920
+ "index": "idx_a",
12909
12921
"rows_read": 1.8367,
12910
12922
"rows_out": 1.8367,
12911
12923
"cost": 0.002051185,
@@ -13201,6 +13213,7 @@ explain select * from t1 where a<10 and b between 10 and 50 and c < 10 {
13201
13213
],
13202
13214
"chosen_access_method": {
13203
13215
"type": "range",
13216
+ "index": "a",
13204
13217
"rows_read": 0.189,
13205
13218
"rows_out": 0.017766,
13206
13219
"cost": 0.006364199,
0 commit comments