Query time 0.00251
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.31"
},
"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": 33,
"rows_produced_per_join": 33,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.88",
"eval_cost": "3.30",
"prefix_cost": "7.18",
"data_read_per_join": "25K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (643,656,648)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (1406,1266,1263,1428,1256,1319,1273,4526,4767,4744,4789)) 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": 1,
"filtered": "5.04",
"cost_info": {
"read_cost": "8.25",
"eval_cost": "0.17",
"prefix_cost": "18.73",
"data_read_per_join": "1K"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.42",
"eval_cost": "0.17",
"prefix_cost": "19.31",
"data_read_per_join": "5K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 643 |
1256 |
1684 |
40 |
4GB |
| 648 |
1256 |
1687 |
7 |
64GB |
| 656 |
1256 |
1560 |
0 |
Black |
| 643 |
1263 |
1526 |
60 |
8GB |
| 648 |
1263 |
1561 |
10 |
128GB |
| 656 |
1263 |
1787 |
0 |
لأصفر الكهرماني |
| 643 |
1266 |
1587 |
80 |
12GB |
| 648 |
1266 |
1562 |
20 |
256GB |
| 656 |
1266 |
1554 |
13 |
Black Titanium |
| 643 |
1273 |
1587 |
80 |
12GB |
| 648 |
1273 |
1562 |
20 |
256GB |
| 656 |
1273 |
1778 |
0 |
Shiny Silver |
| 643 |
1319 |
1526 |
60 |
8GB |
| 648 |
1319 |
1562 |
20 |
256GB |
| 656 |
1319 |
1751 |
0 |
Awesome Light Gray |
| 643 |
1406 |
1526 |
60 |
8GB |
| 648 |
1406 |
1562 |
20 |
256GB |
| 656 |
1406 |
1775 |
1147 |
Mint |
| 643 |
1428 |
1526 |
60 |
8GB |
| 648 |
1428 |
1561 |
10 |
128GB |
| 656 |
1428 |
1781 |
0 |
Wonderful Navy |
| 643 |
4526 |
1587 |
80 |
12GB |
| 648 |
4526 |
1562 |
20 |
256GB |
| 656 |
4526 |
1554 |
13 |
Black Titanium |
| 643 |
4744 |
1526 |
60 |
8GB |
| 648 |
4744 |
1561 |
10 |
128GB |
| 656 |
4744 |
1737 |
40 |
Lavender Awesome |
| 643 |
4767 |
1591 |
50 |
6GB |
| 648 |
4767 |
1561 |
10 |
128GB |
| 656 |
4767 |
1559 |
0 |
White |
| 643 |
4789 |
1587 |
80 |
12GB |
| 648 |
4789 |
1563 |
30 |
512GB |
| 656 |
4789 |
2315 |
0 |
Red |