Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "59.83"
},
"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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "27.64",
"eval_cost": "4.60",
"prefix_cost": "32.24",
"data_read_per_join": "103K"
},
"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,60020,60021)) 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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "4.60",
"prefix_cost": "59.84",
"data_read_per_join": "26K"
},
"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 |
60020 |
4 |
4 |
60021 |
5 |
5 |