Query time 0.00815
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "39.73"
},
"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": 68,
"rows_produced_per_join": 68,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.73",
"eval_cost": "6.80",
"prefix_cost": "14.53",
"data_read_per_join": "52K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,648,643,766)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (2574,247,2478,908,2527,2490,8483,2509,2471,2576,2395,2620,2502,2473,2508,2565,2580)) 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.88",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "0.40",
"prefix_cost": "38.33",
"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": "1.00",
"eval_cost": "0.40",
"prefix_cost": "39.73",
"data_read_per_join": "12K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
247 |
1724 |
0 |
Obsidian Black |
| 656 |
908 |
1653 |
0 |
Titan Grey |
| 656 |
2395 |
1558 |
80 |
Pink |
| 643 |
2471 |
1592 |
90 |
16GB |
| 648 |
2471 |
1563 |
30 |
512GB |
| 656 |
2471 |
1641 |
0 |
Silver Chrome |
| 643 |
2473 |
1587 |
80 |
12GB |
| 648 |
2473 |
1563 |
30 |
512GB |
| 656 |
2473 |
2903 |
0 |
Liquid Silver |
| 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 |
2502 |
1592 |
90 |
16GB |
| 648 |
2502 |
1563 |
30 |
512GB |
| 656 |
2502 |
1559 |
0 |
white |
| 643 |
2508 |
1587 |
80 |
12GB |
| 648 |
2508 |
1563 |
30 |
512GB |
| 656 |
2508 |
2077 |
0 |
Grey |
| 643 |
2509 |
1587 |
80 |
12GB |
| 648 |
2509 |
1562 |
20 |
256GB |
| 656 |
2509 |
1560 |
0 |
Black |
| 643 |
2527 |
2870 |
30 |
3GB |
| 648 |
2527 |
1687 |
7 |
64GB |
| 656 |
2527 |
1600 |
0 |
Blue |
| 643 |
2565 |
1526 |
60 |
8GB |
| 648 |
2565 |
1562 |
20 |
256GB |
| 656 |
2565 |
2985 |
0 |
Aurora Purple |
| 643 |
2574 |
1526 |
60 |
8GB |
| 648 |
2574 |
1562 |
20 |
256GB |
| 656 |
2574 |
2993 |
0 |
Mint Green |
| 643 |
2576 |
1587 |
80 |
12GB |
| 648 |
2576 |
1562 |
20 |
256GB |
| 656 |
2576 |
1596 |
0 |
Green |
| 643 |
2580 |
1592 |
90 |
16GB |
| 648 |
2580 |
1563 |
30 |
512GB |
| 656 |
2580 |
1560 |
0 |
Black |
| 643 |
2620 |
1684 |
40 |
4GB |
| 648 |
2620 |
1561 |
10 |
128GB |
| 656 |
2620 |
1559 |
0 |
white |
| 643 |
8483 |
1711 |
20 |
2GB |
| 648 |
8483 |
2588 |
4 |
8GB |
| 656 |
8483 |
1560 |
0 |
Black |
| 766 |
8483 |
8560 |
20 |
43" |