Query time 0.00305
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.91"
},
"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": 60,
"rows_produced_per_join": 60,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.85",
"eval_cost": "6.00",
"prefix_cost": "12.85",
"data_read_per_join": "46K"
},
"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 (2478,2527,2490,2471,2576,2620,2502,2473,2565,2580,2550,2599,2503,2602,2540,2685,2623,8398,2499,2581)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`lang_code` = 'ar'))"
}
},
{
"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": "15.00",
"eval_cost": "0.30",
"prefix_cost": "33.85",
"data_read_per_join": "3K"
},
"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.76",
"eval_cost": "0.30",
"prefix_cost": "34.91",
"data_read_per_join": "9K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 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 |
2499 |
1587 |
80 |
12GB |
| 648 |
2499 |
1563 |
30 |
512GB |
| 656 |
2499 |
1597 |
0 |
Lavender Purple |
| 643 |
2502 |
1592 |
90 |
16GB |
| 648 |
2502 |
1563 |
30 |
512GB |
| 656 |
2502 |
1559 |
0 |
White |
| 643 |
2503 |
1587 |
80 |
12GB |
| 648 |
2503 |
1563 |
30 |
512GB |
| 656 |
2503 |
2919 |
0 |
Jade Green |
| 643 |
2527 |
2870 |
30 |
3GB |
| 648 |
2527 |
1687 |
7 |
64GB |
| 656 |
2527 |
1600 |
0 |
Blue |
| 643 |
2540 |
1587 |
80 |
12GB |
| 648 |
2540 |
1563 |
30 |
512GB |
| 656 |
2540 |
1597 |
0 |
Lavender Purple |
| 643 |
2550 |
1587 |
80 |
12GB |
| 648 |
2550 |
1563 |
30 |
512GB |
| 656 |
2550 |
2441 |
0 |
Coral Green |
| 643 |
2565 |
1526 |
60 |
8GB |
| 648 |
2565 |
1562 |
20 |
256GB |
| 656 |
2565 |
2985 |
0 |
Aurora Purple |
| 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 |
2581 |
1587 |
80 |
12GB |
| 648 |
2581 |
1563 |
30 |
512GB |
| 656 |
2581 |
1560 |
0 |
Black |
| 643 |
2599 |
1587 |
80 |
12GB |
| 648 |
2599 |
1563 |
30 |
512GB |
| 656 |
2599 |
1595 |
0 |
Yellow |
| 643 |
2602 |
1587 |
80 |
12GB |
| 648 |
2602 |
1563 |
30 |
512GB |
| 656 |
2602 |
1560 |
0 |
Black |
| 643 |
2620 |
1684 |
40 |
4GB |
| 648 |
2620 |
1561 |
10 |
128GB |
| 656 |
2620 |
1559 |
0 |
White |
| 643 |
2623 |
1592 |
90 |
16GB |
| 648 |
2623 |
1564 |
40 |
1TB |
| 656 |
2623 |
1559 |
0 |
White |
| 643 |
2685 |
1587 |
80 |
12GB |
| 648 |
2685 |
1563 |
30 |
512GB |
| 656 |
2685 |
1609 |
0 |
Purple |
| 643 |
8398 |
1526 |
60 |
8GB |
| 648 |
8398 |
1563 |
30 |
512GB |
| 656 |
8398 |
1560 |
0 |
Black |