Query time 0.00345
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.17"
},
"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": 74,
"rows_produced_per_join": 74,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "8.39",
"eval_cost": "7.40",
"prefix_cost": "15.79",
"data_read_per_join": "57K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,648,658,643)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (5750,7013,5739,5727,4432,2574,247,944,478,985,3754,525,2478,10284,6151,1274,908,1930)) 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": 4,
"filtered": "5.73",
"cost_info": {
"read_cost": "18.50",
"eval_cost": "0.42",
"prefix_cost": "41.69",
"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": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.06",
"eval_cost": "0.42",
"prefix_cost": "43.17",
"data_read_per_join": "12K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
247 |
1724 |
0 |
Obsidian Black |
| 643 |
478 |
1526 |
60 |
8GB |
| 648 |
478 |
1561 |
10 |
128GB |
| 656 |
478 |
1556 |
0 |
Ultramarine |
| 643 |
525 |
1526 |
60 |
8GB |
| 648 |
525 |
1562 |
20 |
256GB |
| 656 |
525 |
1552 |
4 |
Desert Titanium |
| 656 |
908 |
1653 |
0 |
Titan Grey |
| 643 |
944 |
1526 |
60 |
8GB |
| 648 |
944 |
1561 |
10 |
128GB |
| 656 |
944 |
1553 |
11 |
Natural Titanium |
| 643 |
985 |
1526 |
60 |
8GB |
| 648 |
985 |
1561 |
10 |
128GB |
| 656 |
985 |
1660 |
100 |
Frost Black |
| 643 |
1274 |
1684 |
40 |
4GB |
| 648 |
1274 |
1687 |
7 |
64GB |
| 656 |
1274 |
1912 |
0 |
Graphite |
| 656 |
1930 |
1560 |
0 |
Black |
| 658 |
1930 |
4765 |
40 |
10-core CPU and 10-core GPU, 16GB, 512GB SSD |
| 643 |
2478 |
1587 |
80 |
12GB |
| 648 |
2478 |
1564 |
40 |
1TB |
| 656 |
2478 |
1653 |
0 |
Titan Grey |
| 643 |
2574 |
1526 |
60 |
8GB |
| 648 |
2574 |
1562 |
20 |
256GB |
| 656 |
2574 |
2993 |
0 |
Mint Green |
| 656 |
3754 |
1599 |
0 |
Midnight Black |
| 658 |
3754 |
4733 |
10 |
M4 chip with 10-core CPU and 8-core GPU, 16GB, 256GB SSD |
| 643 |
4432 |
1684 |
40 |
4GB |
| 648 |
4432 |
1561 |
10 |
128GB |
| 656 |
4432 |
1595 |
0 |
Yellow |
| 643 |
5727 |
1587 |
80 |
12GB |
| 648 |
5727 |
1562 |
20 |
256GB |
| 656 |
5727 |
7521 |
0 |
Cosmic Orange |
| 643 |
5739 |
1526 |
60 |
8GB |
| 648 |
5739 |
1562 |
20 |
256GB |
| 656 |
5739 |
1784 |
0 |
Lavender |
| 643 |
5750 |
1587 |
80 |
12GB |
| 648 |
5750 |
1562 |
20 |
256GB |
| 656 |
5750 |
1776 |
1148 |
Sky Blue |
| 656 |
6151 |
7191 |
0 |
Black and silver |
| 643 |
7013 |
1526 |
60 |
8GB |
| 648 |
7013 |
1562 |
20 |
256GB |
| 656 |
7013 |
7521 |
0 |
Cosmic Orange |
| 643 |
10284 |
1591 |
50 |
6GB |
| 648 |
10284 |
1561 |
10 |
128GB |
| 656 |
10284 |
1560 |
0 |
Black |