Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.16"
},
"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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`variant_id` in (1560,1916,2758,1600,2315,2441,1563,1562,1599,1597,1559,1596,1595,1686,1687,1912,2077,1607,5474,5475,5472,5473,1914))",
"cost_info": {
"read_cost": "13.81",
"eval_cost": "2.30",
"prefix_cost": "16.11",
"data_read_per_join": "26K"
},
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "24.16",
"data_read_per_join": "69K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1559 |
0 |
white |
| 1560 |
0 |
Black |
| 1562 |
20 |
256GB |
| 1563 |
30 |
512GB |
| 1595 |
0 |
Yellow |
| 1596 |
0 |
Green |
| 1597 |
0 |
Lavender Purple |
| 1599 |
0 |
Midnight Black |
| 1600 |
0 |
Blue |
| 1607 |
0 |
silver |
| 1686 |
6 |
32GB |
| 1687 |
7 |
64GB |
| 1912 |
0 |
Graphite |
| 1914 |
0 |
Gray |
| 1916 |
0 |
Platinum Silver |
| 2077 |
0 |
Grey |
| 2315 |
0 |
Red |
| 2441 |
0 |
Coral Green |
| 2758 |
0 |
Gold |
| 5472 |
200 |
256GB with standard glass |
| 5473 |
210 |
512GB with standard glass |
| 5474 |
220 |
1TB with standard glass |
| 5475 |
230 |
2TB with standard glass |