Query time 0.00064
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.17"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.60"
},
"nested_loop": [
{
"table": {
"table_name": "shared_option_variants",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"company_id"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "24"
},
"used_columns": [
"variant_id",
"company_id",
"modifier",
"modifier_type"
]
}
},
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"rows_examined_per_scan": 78,
"rows_produced_per_join": 30,
"filtered": "39.23",
"cost_info": {
"read_cost": "5.45",
"eval_cost": "3.06",
"prefix_cost": "8.51",
"data_read_per_join": "24K"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status",
"yml2_variant"
],
"attached_condition": "((`gaseus`.`a`.`option_id` in (78,79,80,81,68,69,70,71,72,73,74,75)) and (`gaseus`.`a`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"gaseus.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "3.06",
"prefix_cost": "11.57",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
| variant_name |
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
status |
yml2_variant |
| One |
470 |
68 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Base |
475 |
69 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Standard |
478 |
70 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Normal |
480 |
71 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
482 |
72 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Option 1 |
485 |
73 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| A |
492 |
78 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
495 |
80 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Type A |
497 |
81 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Two |
471 |
68 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Plus 10 |
476 |
69 |
20 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Add 10 percent |
479 |
70 |
20 |
10.000 |
P |
0.000 |
A |
0.000 |
A |
A |
|
| Heavy |
481 |
71 |
20 |
0.000 |
A |
2.000 |
A |
0.000 |
A |
A |
|
| Blue] |
483 |
72 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Option 2 |
486 |
73 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B |
493 |
78 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Blue |
496 |
80 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Type B] |
498 |
81 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Three] |
472 |
68 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Plus 20 |
477 |
69 |
30 |
20.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Large |
484 |
72 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Option 3 |
487 |
73 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C |
494 |
78 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Size 2] |
499 |
81 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Beta |
473 |
68 |
40 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Yes |
500 |
81 |
40 |
20.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gamma |
474 |
68 |
50 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Ball |
501 |
81 |
50 |
25.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Diaphragm |
502 |
81 |
60 |
40.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|