Query time 0.00940
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "29.66"
},
"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": 48,
"rows_produced_per_join": 48,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.53",
"eval_cost": "4.80",
"prefix_cost": "10.33",
"data_read_per_join": "37K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,779,771)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (11557,11568,11464,11549,11033,11550,11358,11104,11141,11121,11133,10993,11356,10978,11139)) 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": 7,
"filtered": "15.04",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "0.72",
"prefix_cost": "27.13",
"data_read_per_join": "8K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.72",
"prefix_cost": "29.66",
"data_read_per_join": "21K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
10978 |
1560 |
0 |
Black |
| 771 |
10978 |
9323 |
0 |
50-21mm |
| 779 |
10978 |
9505 |
0 |
Black |
| 656 |
10993 |
1600 |
0 |
Blue |
| 771 |
10993 |
9324 |
0 |
53-21mm |
| 779 |
10993 |
9508 |
0 |
Polished Blue on Silver |
| 656 |
11033 |
3037 |
0 |
Dark Grey |
| 771 |
11033 |
9366 |
0 |
50-22mm |
| 779 |
11033 |
9533 |
0 |
Polished Photo Striped Blue |
| 656 |
11104 |
1674 |
0 |
Brown |
| 771 |
11104 |
9477 |
0 |
53-18mm |
| 779 |
11104 |
9572 |
0 |
Polished Striped Brown & Red |
| 656 |
11121 |
1596 |
0 |
Green |
| 771 |
11121 |
9479 |
0 |
60-14mm |
| 779 |
11121 |
9517 |
0 |
Polished Black |
| 656 |
11133 |
1596 |
0 |
Green |
| 771 |
11133 |
9368 |
0 |
55-15mm |
| 779 |
11133 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11139 |
1596 |
0 |
Green |
| 771 |
11139 |
9324 |
0 |
53-21mm |
| 779 |
11139 |
9517 |
0 |
Polished Black |
| 656 |
11141 |
1596 |
0 |
Green |
| 771 |
11141 |
9369 |
0 |
58-15mm |
| 779 |
11141 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11356 |
1558 |
80 |
Pink |
| 771 |
11356 |
9364 |
0 |
58-18mm |
| 779 |
11356 |
9588 |
0 |
Polished Gunmetal |
| 656 |
11358 |
3442 |
0 |
Violet |
| 771 |
11358 |
9362 |
0 |
55-18mm |
| 779 |
11358 |
9588 |
0 |
Polished Gunmetal |
| 656 |
11464 |
9967 |
0 |
Dark Grey Polar |
| 771 |
11464 |
9403 |
0 |
54-16mm |
| 779 |
11464 |
9523 |
0 |
Polished Silver |
| 656 |
11549 |
6360 |
0 |
Dark Green |
| 771 |
11549 |
9324 |
0 |
53-21mm |
| 779 |
11549 |
9517 |
0 |
Polished Black |
| 656 |
11550 |
9486 |
0 |
Grey Gradient |
| 771 |
11550 |
9422 |
0 |
55-19mm |
| 779 |
11550 |
9517 |
0 |
Polished Black |
| 656 |
11557 |
1600 |
0 |
Blue |
| 771 |
11557 |
9696 |
0 |
60-17mm |
| 779 |
11557 |
9627 |
0 |
Polished Copper |
| 656 |
11568 |
1560 |
0 |
Black |
| 771 |
11568 |
9426 |
0 |
53-20mm |
| 779 |
11568 |
9517 |
0 |
Polished Black |