Query time 0.00176
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.63"
},
"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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.23",
"eval_cost": "4.20",
"prefix_cost": "29.43",
"data_read_per_join": "94K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (1193,1201,1195,1194,1197,1515,1200,1199,8172,10781,8173,8220,1362,1380,1516,60012,60011,1369,7396,60013,60014)) 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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "54.63",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"position"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
1193 |
0 |
S |
1194 |
30 |
L |
1195 |
20 |
M |
1197 |
50 |
XL |
1199 |
0 |
Blue |
1200 |
0 |
Black |
1201 |
0 |
White |
1362 |
5 |
XS |
1369 |
31 |
Black - Red |
1380 |
95 |
Royal blue - white |
1515 |
0 |
Red |
1516 |
0 |
Yellow |
7396 |
32 |
Black - Blue |
8172 |
0 |
42 |
8173 |
0 |
44 |
8220 |
0 |
48 |
10781 |
0 |
46 |
60011 |
83 |
2XS |
60012 |
84 |
3XS |
60013 |
85 |
4XS |
60014 |
86 |
5XS |