Query time 0.00225
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.93"
},
"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": 41,
"rows_produced_per_join": 41,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.76",
"eval_cost": "4.10",
"prefix_cost": "8.86",
"data_read_per_join": "31K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,766)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (5661,2455,1517,4991,2438,8498,7624,8484,8497,5346,7608,8485,1538,8488,8486,8492,8487,7614)) 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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "10.25",
"eval_cost": "0.21",
"prefix_cost": "23.21",
"data_read_per_join": "2K"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.21",
"prefix_cost": "23.93",
"data_read_per_join": "6K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
1517 |
1560 |
0 |
Black |
| 766 |
1517 |
8557 |
40 |
55" |
| 656 |
1538 |
1560 |
0 |
Black |
| 766 |
1538 |
8558 |
70 |
65" |
| 656 |
2438 |
1560 |
0 |
Black |
| 766 |
2438 |
8551 |
30 |
50" |
| 656 |
2455 |
1889 |
0 |
Dark Gray |
| 766 |
2455 |
8553 |
90 |
75" |
| 656 |
4991 |
1560 |
0 |
Black |
| 656 |
5346 |
1560 |
0 |
Black |
| 656 |
5661 |
1596 |
0 |
Green |
| 656 |
7608 |
1560 |
0 |
Black |
| 766 |
7608 |
8553 |
90 |
75" |
| 656 |
7614 |
1560 |
0 |
Black |
| 766 |
7614 |
8560 |
20 |
43" |
| 656 |
7624 |
1560 |
0 |
Black |
| 766 |
7624 |
8554 |
80 |
70" |
| 656 |
8484 |
1560 |
0 |
Black |
| 766 |
8484 |
8557 |
40 |
55" |
| 656 |
8485 |
1560 |
0 |
Black |
| 766 |
8485 |
8558 |
70 |
65" |
| 656 |
8486 |
1889 |
0 |
Dark Gray |
| 766 |
8486 |
8560 |
20 |
43" |
| 656 |
8487 |
1889 |
0 |
Dark Gray |
| 766 |
8487 |
8557 |
40 |
55" |
| 656 |
8488 |
1889 |
0 |
Dark Gray |
| 766 |
8488 |
8558 |
70 |
65" |
| 656 |
8492 |
1560 |
0 |
Black |
| 766 |
8492 |
8551 |
30 |
50" |
| 656 |
8497 |
1560 |
0 |
Black |
| 766 |
8497 |
8805 |
100 |
77" |
| 656 |
8498 |
1560 |
0 |
Black |
| 766 |
8498 |
8558 |
70 |
65" |