Query time 0.00326
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.20"
},
"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": 44,
"rows_produced_per_join": 44,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.09",
"eval_cost": "4.40",
"prefix_cost": "9.49",
"data_read_per_join": "34K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (704,656,682,653)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (10447,10356,10368,10354,10406,10436,10486,10412,10449,10482,10553)) 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": "8.52",
"cost_info": {
"read_cost": "11.00",
"eval_cost": "0.37",
"prefix_cost": "24.89",
"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.94",
"eval_cost": "0.37",
"prefix_cost": "26.20",
"data_read_per_join": "11K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
10354 |
1558 |
80 |
Pink |
| 704 |
10354 |
9230 |
0 |
30W |
| 656 |
10356 |
1558 |
80 |
Pink |
| 704 |
10356 |
9231 |
0 |
42W |
| 656 |
10368 |
1559 |
0 |
White |
| 682 |
10368 |
9235 |
0 |
5Kg |
| 656 |
10406 |
1559 |
0 |
White |
| 704 |
10406 |
9258 |
0 |
500W |
| 656 |
10412 |
1559 |
0 |
White |
| 704 |
10412 |
9261 |
0 |
150-200W |
| 656 |
10436 |
1607 |
0 |
Silver |
| 704 |
10436 |
9375 |
0 |
1300-1500W |
| 656 |
10447 |
1558 |
80 |
Pink |
| 704 |
10447 |
9270 |
0 |
3W |
| 653 |
10449 |
3733 |
0 |
1,400mAh |
| 656 |
10449 |
1558 |
80 |
Pink |
| 656 |
10482 |
1607 |
0 |
Silver |
| 704 |
10482 |
9720 |
0 |
1600 –1700 W |
| 656 |
10486 |
1560 |
0 |
Black |
| 656 |
10553 |
1560 |
0 |
Black |