Query time 0.00266
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.20"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"index_condition": "((`webmarco`.`a`.`option_id` <=> 320) and (`webmarco`.`a`.`status` <=> 'A'))",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "21.60",
"data_read_per_join": "864"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "43.20",
"data_read_per_join": "13K"
},
"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 |
1 |
1402 |
320 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
2 |
1403 |
320 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
3 |
1404 |
320 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
4 |
1405 |
320 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
5 |
2029 |
320 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
6 |
2030 |
320 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
7 |
2031 |
320 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
8 |
2032 |
320 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
9 |
2033 |
320 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
10 |
2034 |
320 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
11 |
2035 |
320 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
12 |
2036 |
320 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
13 |
2037 |
320 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
14 |
2038 |
320 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
15 |
2039 |
320 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
16 |
2040 |
320 |
16 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
17 |
2041 |
320 |
17 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
18 |
2042 |
320 |
18 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |