Query time 0.00286
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.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": 56,
"rows_produced_per_join": 56,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.41",
"eval_cost": "5.60",
"prefix_cost": "12.01",
"data_read_per_join": "43K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,643,648,766)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (2685,2623,2455,8398,2304,2374,2438,2499,2581,2110,8484,8485,8488,8486)) 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.88",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "0.33",
"prefix_cost": "31.61",
"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.82",
"eval_cost": "0.33",
"prefix_cost": "32.76",
"data_read_per_join": "9K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
2110 |
1724 |
0 |
Obsidian Black |
| 656 |
2304 |
1559 |
0 |
White |
| 656 |
2374 |
1600 |
0 |
Blue |
| 643 |
2438 |
1711 |
20 |
2GB |
| 648 |
2438 |
2588 |
4 |
8GB |
| 656 |
2438 |
1560 |
0 |
Black |
| 766 |
2438 |
8551 |
30 |
50 |
| 643 |
2455 |
1711 |
20 |
2GB |
| 656 |
2455 |
1889 |
0 |
Dark Gray |
| 766 |
2455 |
8553 |
90 |
75" |
| 643 |
2499 |
1587 |
80 |
12GB |
| 648 |
2499 |
1563 |
30 |
512GB |
| 656 |
2499 |
1597 |
0 |
Lavender Purple |
| 643 |
2581 |
1587 |
80 |
12GB |
| 648 |
2581 |
1563 |
30 |
512GB |
| 656 |
2581 |
1560 |
0 |
Black |
| 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 |
| 643 |
8484 |
1711 |
20 |
2GB |
| 648 |
8484 |
2588 |
4 |
8GB |
| 656 |
8484 |
1560 |
0 |
Black |
| 766 |
8484 |
8557 |
40 |
55" |
| 643 |
8485 |
1711 |
20 |
2GB |
| 648 |
8485 |
2588 |
4 |
8GB |
| 656 |
8485 |
1560 |
0 |
Black |
| 766 |
8485 |
8558 |
70 |
65" |
| 643 |
8486 |
1711 |
20 |
2GB |
| 656 |
8486 |
1889 |
0 |
Dark Gray |
| 766 |
8486 |
8560 |
20 |
43" |
| 643 |
8488 |
1711 |
20 |
2GB |
| 656 |
8488 |
1889 |
0 |
Dark Gray |
| 766 |
8488 |
8558 |
70 |
65" |