Query time 0.00436
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.84"
},
"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": 72,
"rows_produced_per_join": 72,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "8.17",
"eval_cost": "7.20",
"prefix_cost": "15.37",
"data_read_per_join": "55K"
},
"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 (2502,2473,2565,2580,2550,2599,2503,2602,3049,2540,3046,3053,4767,2685,2623,5037,8398,4744,2499,3055,2581,2631,2519,8399)) 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.00",
"eval_cost": "0.36",
"prefix_cost": "40.57",
"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.91",
"eval_cost": "0.36",
"prefix_cost": "41.84",
"data_read_per_join": "10K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 643 |
2473 |
1587 |
80 |
12GB |
| 648 |
2473 |
1563 |
30 |
512GB |
| 656 |
2473 |
2903 |
0 |
Liquid Silver |
| 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 |
2519 |
1526 |
60 |
8GB |
| 648 |
2519 |
1562 |
20 |
256GB |
| 656 |
2519 |
2758 |
0 |
Gold |
| 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 |
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 |
2623 |
1592 |
90 |
16GB |
| 648 |
2623 |
1564 |
40 |
1TB |
| 656 |
2623 |
1559 |
0 |
white |
| 643 |
2631 |
1587 |
80 |
12GB |
| 648 |
2631 |
1563 |
30 |
512GB |
| 656 |
2631 |
1595 |
0 |
Yellow |
| 643 |
2685 |
1587 |
80 |
12GB |
| 648 |
2685 |
1563 |
30 |
512GB |
| 656 |
2685 |
1609 |
0 |
Purple |
| 643 |
3046 |
1587 |
80 |
12GB |
| 648 |
3046 |
1562 |
20 |
256GB |
| 656 |
3046 |
1596 |
0 |
Green |
| 643 |
3049 |
1587 |
80 |
12GB |
| 648 |
3049 |
1563 |
30 |
512GB |
| 656 |
3049 |
1559 |
0 |
white |
| 643 |
3053 |
1592 |
90 |
16GB |
| 648 |
3053 |
1564 |
40 |
1TB |
| 656 |
3053 |
2315 |
0 |
Red |
| 643 |
3055 |
1587 |
80 |
12GB |
| 648 |
3055 |
1563 |
30 |
512GB |
| 656 |
3055 |
2315 |
0 |
Red |
| 643 |
4744 |
1526 |
60 |
8GB |
| 648 |
4744 |
1561 |
10 |
128GB |
| 656 |
4744 |
1737 |
40 |
Lavender Awesome |
| 643 |
4767 |
1591 |
50 |
6GB |
| 648 |
4767 |
1561 |
10 |
128GB |
| 656 |
4767 |
1559 |
0 |
white |
| 643 |
5037 |
1684 |
40 |
4GB |
| 656 |
5037 |
1560 |
0 |
Black |
| 643 |
8398 |
1526 |
60 |
8GB |
| 648 |
8398 |
1563 |
30 |
512GB |
| 656 |
8398 |
1560 |
0 |
Black |
| 643 |
8399 |
1587 |
80 |
12GB |
| 648 |
8399 |
1563 |
30 |
512GB |
| 656 |
8399 |
1609 |
0 |
Purple |