Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.06"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`variant_id` in (1674,2077,1595,1560,8884,8883,1600,8888,8880,1913,1558,3421,1559,8886,8882,1596,8919,8920,8921,8952,8953))",
"cost_info": {
"read_cost": "12.61",
"eval_cost": "2.10",
"prefix_cost": "14.71",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"position"
]
}
},
{
"table": {
"table_name": "pfvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "22.06",
"data_read_per_join": "63K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1558 |
80 |
Pink |
| 1559 |
0 |
white |
| 1560 |
0 |
Black |
| 1595 |
0 |
Yellow |
| 1596 |
0 |
Green |
| 1600 |
0 |
Blue |
| 1674 |
0 |
Brown |
| 1913 |
0 |
Navy |
| 2077 |
0 |
Grey |
| 3421 |
0 |
Beige |
| 8880 |
0 |
13.5" |
| 8882 |
0 |
16" |
| 8883 |
0 |
13" |
| 8884 |
0 |
15.6" |
| 8886 |
0 |
14" |
| 8888 |
0 |
14.1" |
| 8919 |
0 |
2.5L |
| 8920 |
0 |
1.5L |
| 8921 |
0 |
11" |
| 8952 |
0 |
15L |
| 8953 |
0 |
22.5L |