Query time 0.00415
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "77.97"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"rows_examined_per_scan": 132,
"rows_produced_per_join": 132,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "14.77",
"eval_cost": "13.20",
"prefix_cost": "27.97",
"data_read_per_join": "102K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,766,643,648,649,658)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (1542,1540,1538,1532,1528,1517,1428,1406,1319,1284,1274,1273,1266,1263,1256,1143,1134,1126,985,944,908,853)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 10,
"filtered": "8.23",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "1.09",
"prefix_cost": "74.17",
"data_read_per_join": "12K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`fv`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id`)"
}
},
{
"table": {
"table_name": "fvd",
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.71",
"eval_cost": "1.09",
"prefix_cost": "77.97",
"data_read_per_join": "32K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 658 |
853 |
1700 |
0 |
Airpods 4 |
| 656 |
908 |
1653 |
0 |
Titan Grey |
| 643 |
944 |
1526 |
60 |
8GB |
| 648 |
944 |
1561 |
10 |
128GB |
| 649 |
944 |
1516 |
0 |
6.3" |
| 656 |
944 |
1553 |
11 |
Natural Titanium |
| 643 |
985 |
1526 |
60 |
8GB |
| 648 |
985 |
1561 |
10 |
128GB |
| 649 |
985 |
1517 |
0 |
6.7" |
| 656 |
985 |
1660 |
100 |
Frost Black |
| 643 |
1126 |
1619 |
10 |
1GB |
| 648 |
1126 |
1686 |
6 |
32GB |
| 649 |
1126 |
1612 |
0 |
40mm |
| 656 |
1126 |
1631 |
20 |
Midnight Aluminum |
| 643 |
1134 |
1696 |
15 |
1.5GB |
| 648 |
1134 |
1687 |
7 |
64GB |
| 649 |
1134 |
1614 |
0 |
42mm |
| 656 |
1134 |
1634 |
10 |
Jet Black Aluminum |
| 656 |
1143 |
1600 |
0 |
Blue |
| 643 |
1256 |
1684 |
40 |
4GB |
| 648 |
1256 |
1687 |
7 |
64GB |
| 649 |
1256 |
1517 |
0 |
6.7" |
| 656 |
1256 |
1560 |
0 |
Black |
| 643 |
1263 |
1526 |
60 |
8GB |
| 648 |
1263 |
1561 |
10 |
128GB |
| 649 |
1263 |
1756 |
0 |
6.2" |
| 656 |
1263 |
1787 |
0 |
Amber Yellow |
| 643 |
1266 |
1587 |
80 |
12GB |
| 648 |
1266 |
1562 |
20 |
256GB |
| 649 |
1266 |
1537 |
0 |
6.8" |
| 656 |
1266 |
1554 |
13 |
Black Titanium |
| 643 |
1273 |
1587 |
80 |
12GB |
| 648 |
1273 |
1562 |
20 |
256GB |
| 649 |
1273 |
8932 |
0 |
7.6" |
| 656 |
1273 |
1778 |
0 |
Shiny Silver |
| 643 |
1274 |
1684 |
40 |
4GB |
| 648 |
1274 |
1687 |
7 |
64GB |
| 649 |
1274 |
1571 |
0 |
11" |
| 656 |
1274 |
1912 |
0 |
Graphite |
| 643 |
1284 |
1711 |
20 |
2GB |
| 648 |
1284 |
1686 |
6 |
32GB |
| 649 |
1284 |
1792 |
0 |
43" |
| 656 |
1284 |
1607 |
0 |
silver |
| 643 |
1319 |
1526 |
60 |
8GB |
| 648 |
1319 |
1562 |
20 |
256GB |
| 649 |
1319 |
1517 |
0 |
6.7" |
| 656 |
1319 |
1751 |
0 |
Awesome Light Gray |
| 643 |
1406 |
1526 |
60 |
8GB |
| 648 |
1406 |
1562 |
20 |
256GB |
| 649 |
1406 |
1517 |
0 |
6.7" |
| 656 |
1406 |
1775 |
1147 |
Mint |
| 643 |
1428 |
1526 |
60 |
8GB |
| 648 |
1428 |
1561 |
10 |
128GB |
| 649 |
1428 |
1800 |
0 |
6.6" |
| 656 |
1428 |
1781 |
0 |
Wonderful Navy |
| 656 |
1517 |
1560 |
0 |
Black |
| 766 |
1517 |
8557 |
40 |
55" |
| 656 |
1528 |
1560 |
0 |
Black |
| 766 |
1528 |
8558 |
70 |
65" |
| 656 |
1532 |
1560 |
0 |
Black |
| 766 |
1532 |
8558 |
70 |
65" |
| 656 |
1538 |
1560 |
0 |
Black |
| 766 |
1538 |
8558 |
70 |
65" |
| 656 |
1540 |
1912 |
0 |
Graphite |
| 656 |
1542 |
1559 |
0 |
white |