Query time 0.00394
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.30"
},
"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": 67,
"rows_produced_per_join": 67,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.62",
"eval_cost": "6.70",
"prefix_cost": "14.32",
"data_read_per_join": "51K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (779,656,771)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (11418,11108,11394,11493,11343,11406,11366,11370,11469,11592,11089,11434,11490,11263,11336,11110,11123,11422,11487,11505)) 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": 10,
"filtered": "15.04",
"cost_info": {
"read_cost": "16.75",
"eval_cost": "1.01",
"prefix_cost": "37.77",
"data_read_per_join": "11K"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.52",
"eval_cost": "1.01",
"prefix_cost": "41.30",
"data_read_per_join": "30K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
11089 |
9359 |
0 |
Blue/Grey |
| 771 |
11089 |
9329 |
0 |
51-21mm |
| 779 |
11089 |
9557 |
0 |
Polished Turtledove |
| 656 |
11108 |
1596 |
0 |
Green |
| 771 |
11108 |
9477 |
0 |
53-18mm |
| 779 |
11108 |
9520 |
0 |
Polished Havana |
| 656 |
11110 |
1600 |
0 |
Blue |
| 771 |
11110 |
9476 |
0 |
52-19mm |
| 779 |
11110 |
9575 |
0 |
Polished Yellow & Blue Havana |
| 656 |
11123 |
9480 |
0 |
Blue/Black |
| 771 |
11123 |
9321 |
0 |
55-20mm |
| 779 |
11123 |
9573 |
0 |
Polished Striped Grey & Blue |
| 656 |
11263 |
1596 |
0 |
Green |
| 771 |
11263 |
9324 |
0 |
53-21mm |
| 779 |
11263 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11336 |
1783 |
0 |
Dark blue |
| 771 |
11336 |
9422 |
0 |
55-19mm |
| 779 |
11336 |
9527 |
0 |
Matte Rubber Black |
| 656 |
11343 |
1596 |
0 |
Green |
| 771 |
11343 |
9747 |
0 |
62-19mm |
| 779 |
11343 |
9517 |
0 |
Polished Black |
| 656 |
11366 |
1596 |
0 |
Green |
| 771 |
11366 |
9787 |
0 |
66-15mm |
| 779 |
11366 |
9588 |
0 |
Polished Gunmetal |
| 656 |
11370 |
9791 |
0 |
Clear/Brown |
| 771 |
11370 |
9325 |
0 |
57-17mm |
| 779 |
11370 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11394 |
3442 |
0 |
Violet |
| 771 |
11394 |
9426 |
0 |
53-20mm |
| 779 |
11394 |
9517 |
0 |
Polished Black |
| 656 |
11406 |
1560 |
0 |
Black |
| 771 |
11406 |
9397 |
0 |
62-14mm |
| 779 |
11406 |
9588 |
0 |
Polished Gunmetal |
| 656 |
11418 |
6360 |
0 |
Dark Green |
| 771 |
11418 |
9894 |
0 |
57-18mm |
| 779 |
11418 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11422 |
1596 |
0 |
Green |
| 771 |
11422 |
9426 |
0 |
53-20mm |
| 779 |
11422 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11434 |
1596 |
0 |
Green |
| 771 |
11434 |
9364 |
0 |
58-18mm |
| 779 |
11434 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11469 |
1596 |
0 |
Green |
| 771 |
11469 |
9356 |
0 |
58-14mm |
| 779 |
11469 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11487 |
1889 |
0 |
Dark Gray |
| 771 |
11487 |
9422 |
0 |
55-19mm |
| 779 |
11487 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11490 |
3037 |
0 |
Dark Grey |
| 771 |
11490 |
9361 |
0 |
59-17mm |
| 779 |
11490 |
9971 |
0 |
Polished Black On Black |
| 656 |
11493 |
1754 |
127 |
Light Green |
| 771 |
11493 |
9341 |
0 |
59-18mm |
| 779 |
11493 |
9522 |
0 |
Polished Arista Gold |
| 656 |
11505 |
1596 |
0 |
Green |
| 771 |
11505 |
9346 |
0 |
61-17mm |
| 779 |
11505 |
9517 |
0 |
Polished Black |
| 656 |
11592 |
1596 |
0 |
Green |
| 771 |
11592 |
9444 |
0 |
60-19mm |
| 779 |
11592 |
9522 |
0 |
Polished Arista Gold |