Query time 0.00384
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.00"
},
"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": 74,
"rows_produced_per_join": 74,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "8.39",
"eval_cost": "7.40",
"prefix_cost": "15.79",
"data_read_per_join": "57K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,648,643)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (5750,7013,5739,5727,944,478,985,525,2478,10284,2527,2490,1406,508,1266,1428,1263,2471,2576,2620,1256,1319,1273,4526)) 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": 3,
"filtered": "5.04",
"cost_info": {
"read_cost": "18.50",
"eval_cost": "0.37",
"prefix_cost": "41.69",
"data_read_per_join": "4K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.93",
"eval_cost": "0.37",
"prefix_cost": "43.00",
"data_read_per_join": "11K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 643 |
478 |
1526 |
60 |
8GB |
| 648 |
478 |
1561 |
10 |
128GB |
| 656 |
478 |
1556 |
0 |
Ultramarine |
| 643 |
508 |
1526 |
60 |
8GB |
| 648 |
508 |
1561 |
10 |
128GB |
| 656 |
508 |
1559 |
0 |
white |
| 643 |
525 |
1526 |
60 |
8GB |
| 648 |
525 |
1562 |
20 |
256GB |
| 656 |
525 |
1552 |
4 |
Desert Titanium |
| 643 |
944 |
1526 |
60 |
8GB |
| 648 |
944 |
1561 |
10 |
128GB |
| 656 |
944 |
1553 |
11 |
Natural Titanium |
| 643 |
985 |
1526 |
60 |
8GB |
| 648 |
985 |
1561 |
10 |
128GB |
| 656 |
985 |
1660 |
100 |
Frost Black |
| 643 |
1256 |
1684 |
40 |
4GB |
| 648 |
1256 |
1687 |
7 |
64GB |
| 656 |
1256 |
1560 |
0 |
Black |
| 643 |
1263 |
1526 |
60 |
8GB |
| 648 |
1263 |
1561 |
10 |
128GB |
| 656 |
1263 |
1787 |
0 |
Amber Yellow |
| 643 |
1266 |
1587 |
80 |
12GB |
| 648 |
1266 |
1562 |
20 |
256GB |
| 656 |
1266 |
1554 |
13 |
Black Titanium |
| 643 |
1273 |
1587 |
80 |
12GB |
| 648 |
1273 |
1562 |
20 |
256GB |
| 656 |
1273 |
1778 |
0 |
Shiny Silver |
| 643 |
1319 |
1526 |
60 |
8GB |
| 648 |
1319 |
1562 |
20 |
256GB |
| 656 |
1319 |
1751 |
0 |
Awesome Light Gray |
| 643 |
1406 |
1526 |
60 |
8GB |
| 648 |
1406 |
1562 |
20 |
256GB |
| 656 |
1406 |
1775 |
1147 |
Mint |
| 643 |
1428 |
1526 |
60 |
8GB |
| 648 |
1428 |
1561 |
10 |
128GB |
| 656 |
1428 |
1781 |
0 |
Wonderful Navy |
| 643 |
2471 |
1592 |
90 |
16GB |
| 648 |
2471 |
1563 |
30 |
512GB |
| 656 |
2471 |
1641 |
0 |
Silver Chrome |
| 643 |
2478 |
1587 |
80 |
12GB |
| 648 |
2478 |
1564 |
40 |
1TB |
| 656 |
2478 |
1653 |
0 |
Titan Grey |
| 643 |
2490 |
1587 |
80 |
12GB |
| 648 |
2490 |
1563 |
30 |
512GB |
| 656 |
2490 |
2910 |
0 |
Lemon Green |
| 643 |
2527 |
2870 |
30 |
3GB |
| 648 |
2527 |
1687 |
7 |
64GB |
| 656 |
2527 |
1600 |
0 |
Blue |
| 643 |
2576 |
1587 |
80 |
12GB |
| 648 |
2576 |
1562 |
20 |
256GB |
| 656 |
2576 |
1596 |
0 |
Green |
| 643 |
2620 |
1684 |
40 |
4GB |
| 648 |
2620 |
1561 |
10 |
128GB |
| 656 |
2620 |
1559 |
0 |
white |
| 643 |
4526 |
1587 |
80 |
12GB |
| 648 |
4526 |
1562 |
20 |
256GB |
| 656 |
4526 |
1554 |
13 |
Black Titanium |
| 643 |
5727 |
1587 |
80 |
12GB |
| 648 |
5727 |
1562 |
20 |
256GB |
| 656 |
5727 |
7521 |
0 |
Cosmic Orange |
| 643 |
5739 |
1526 |
60 |
8GB |
| 648 |
5739 |
1562 |
20 |
256GB |
| 656 |
5739 |
1784 |
0 |
Lavender |
| 643 |
5750 |
1587 |
80 |
12GB |
| 648 |
5750 |
1562 |
20 |
256GB |
| 656 |
5750 |
1776 |
1148 |
Sky Blue |
| 643 |
7013 |
1526 |
60 |
8GB |
| 648 |
7013 |
1562 |
20 |
256GB |
| 656 |
7013 |
7521 |
0 |
Cosmic Orange |
| 643 |
10284 |
1591 |
50 |
6GB |
| 648 |
10284 |
1561 |
10 |
128GB |
| 656 |
10284 |
1560 |
0 |
Black |