Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "40.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "22.00"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"rows_examined_per_scan": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (1067,1066,1068,1069)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "8.71",
"eval_cost": "2.20",
"prefix_cost": "10.91",
"data_read_per_join": "1K"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status",
"note_required"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "18.61",
"data_read_per_join": "16K"
},
"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 |
note_required |
S 23.5"-28.5" |
18889 |
1066 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 27.5"-32.5" |
18893 |
1067 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 33.5"-38.0" |
18901 |
1068 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 19.0"-22.5" |
18905 |
1069 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 27.5"-32.5" |
18890 |
1066 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 31.5"-36.0" |
18894 |
1067 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 37.5"-42.0" |
18902 |
1068 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 22.0"-25.5" |
18906 |
1069 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 31.5"-38.0" |
18891 |
1066 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 35.5"-40.0" |
18895 |
1067 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 41.5"-46.0" |
18903 |
1068 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 25.0"-28.5" |
18907 |
1069 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 37.5"-44.0" |
18892 |
1066 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 39.5"-45.5" |
18896 |
1067 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 45.5"-51.0" |
18904 |
1068 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 28.0"-31.5" |
18908 |
1069 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|