Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.23"
},
"nested_loop": [
{
"table": {
"table_name": "pfvd",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"rows_examined_per_scan": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.43",
"eval_cost": "4.40",
"prefix_cost": "30.83",
"data_read_per_join": "99K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (62213,62212,62214,62215,62216,62217,62218,63591,63592,62221,63598,62228,63599,1196,67013,1193,67011,1195,1194,1197,1364,67291)) and (`webmarco`.`pfvd`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "pfv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"webmarco.pfvd.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.00",
"eval_cost": "4.40",
"prefix_cost": "57.23",
"data_read_per_join": "25K"
},
"used_columns": [
"variant_id",
"position"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
1193 |
0 |
S |
1194 |
30 |
L |
1195 |
20 |
M |
1196 |
60 |
XXL |
1197 |
50 |
XL |
1364 |
70 |
3XL |
62212 |
0 |
In Low Season (15/11 / 2021-15 / 04/2022) |
62213 |
0 |
In Low Season (01/10 / 2022-15 / 11/2022) |
62214 |
0 |
In Mid Season (16/04/2022 - 31/05/2022) |
62215 |
0 |
In Mid Season (01/09/2022 - 30/09/2022) |
62216 |
0 |
In High Season (01/06/2022-10/07/2022) |
62217 |
0 |
In Higher Season (11/07/2022 - 05/08/2022) |
62218 |
0 |
In the Highst Season (06/08/2022 - 31/08/2022) |
62221 |
0 |
101 |
62228 |
0 |
108 |
63591 |
0 |
V3 |
63592 |
0 |
V4 |
63598 |
0 |
208 |
63599 |
0 |
201 |
67011 |
0 |
NERO |
67013 |
0 |
GRIGIO MEDIO |
67291 |
0 |
BLU NAVY |