Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.00"
},
"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": 40,
"rows_produced_per_join": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "4.00",
"prefix_cost": "14.00",
"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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "4.00",
"prefix_cost": "28.00",
"data_read_per_join": "30K"
},
"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 |
NO DISC |
16018 |
788 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
A |
16019 |
788 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
B |
16020 |
788 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
C |
16021 |
788 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
D |
16022 |
788 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
E |
16023 |
788 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
F |
16024 |
788 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
G |
16025 |
788 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
H |
16026 |
788 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
I |
16027 |
788 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
J |
16028 |
788 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
K |
16029 |
788 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L |
16030 |
788 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M |
16031 |
788 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
N |
16032 |
788 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
O |
16033 |
788 |
16 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
P |
16034 |
788 |
17 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Q |
16035 |
788 |
18 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
R |
16036 |
788 |
19 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S |
16037 |
788 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
T |
16038 |
788 |
21 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
U |
16039 |
788 |
22 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
V |
16040 |
788 |
23 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
W |
16041 |
788 |
24 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
X |
16042 |
788 |
25 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Y |
16043 |
788 |
26 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Z |
16044 |
788 |
27 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
OTHER-4 CHARACTERS MAX |
16045 |
788 |
28 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|