Query time 0.00540
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "98.76"
},
"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": 168,
"rows_produced_per_join": 168,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "18.73",
"eval_cost": "16.80",
"prefix_cost": "35.53",
"data_read_per_join": "129K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (643,656,648,766,649)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (1274,1406,1266,1428,1263,1256,1319,1273,4526,1532,4796,8499,8502,8501,4798,1284,1528,4767,1517,1542,4744,8498,8497,1540,1544,4812,1538,8503,8505,8496,10136,10137,5774)) 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": 12,
"filtered": "7.54",
"cost_info": {
"read_cost": "42.00",
"eval_cost": "1.27",
"prefix_cost": "94.33",
"data_read_per_join": "14K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.17",
"eval_cost": "1.27",
"prefix_cost": "98.76",
"data_read_per_join": "38K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 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 |
| 656 |
1544 |
1607 |
0 |
silver |
| 643 |
4526 |
1587 |
80 |
12GB |
| 648 |
4526 |
1562 |
20 |
256GB |
| 649 |
4526 |
1515 |
0 |
6.9" |
| 656 |
4526 |
1554 |
13 |
Black Titanium |
| 643 |
4744 |
1526 |
60 |
8GB |
| 648 |
4744 |
1561 |
10 |
128GB |
| 649 |
4744 |
1517 |
0 |
6.7" |
| 656 |
4744 |
1737 |
40 |
Lavender Awesome |
| 643 |
4767 |
1591 |
50 |
6GB |
| 648 |
4767 |
1561 |
10 |
128GB |
| 649 |
4767 |
1517 |
0 |
6.7" |
| 656 |
4767 |
1559 |
0 |
white |
| 643 |
4796 |
1587 |
80 |
12GB |
| 648 |
4796 |
1563 |
30 |
512GB |
| 649 |
4796 |
1871 |
0 |
12.4" |
| 656 |
4796 |
1914 |
0 |
Gray |
| 643 |
4798 |
1587 |
80 |
12GB |
| 648 |
4798 |
1563 |
30 |
512GB |
| 649 |
4798 |
1863 |
0 |
14.6" |
| 656 |
4798 |
1607 |
0 |
silver |
| 643 |
4812 |
1711 |
20 |
2GB |
| 648 |
4812 |
1686 |
6 |
32GB |
| 649 |
4812 |
1612 |
0 |
40mm |
| 656 |
4812 |
1790 |
0 |
Creamy |
| 656 |
5774 |
1559 |
0 |
white |
| 656 |
8496 |
1560 |
0 |
Black |
| 766 |
8496 |
8557 |
40 |
55" |
| 656 |
8497 |
1560 |
0 |
Black |
| 766 |
8497 |
8805 |
100 |
77" |
| 656 |
8498 |
1560 |
0 |
Black |
| 766 |
8498 |
8558 |
70 |
65" |
| 656 |
8499 |
1560 |
0 |
Black |
| 766 |
8499 |
8556 |
120 |
85" |
| 656 |
8501 |
1560 |
0 |
Black |
| 766 |
8501 |
8557 |
40 |
55" |
| 656 |
8502 |
1560 |
0 |
Black |
| 766 |
8502 |
8553 |
90 |
75" |
| 656 |
8503 |
1560 |
0 |
Black |
| 766 |
8503 |
8556 |
120 |
85" |
| 656 |
8505 |
1560 |
0 |
Black |
| 766 |
8505 |
8553 |
90 |
75" |
| 656 |
10136 |
1560 |
0 |
Black |
| 766 |
10136 |
8805 |
100 |
77" |
| 656 |
10137 |
1560 |
0 |
Black |
| 766 |
10137 |
8806 |
110 |
83" |