Query time 0.00256
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.56"
},
"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": 29,
"rows_produced_per_join": 29,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.18",
"eval_cost": "2.90",
"prefix_cost": "7.08",
"data_read_per_join": "22K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`gaseus`.`pfv`.`feature_id` in (623,622,626,553,625,624,627,628,595,637,636)) and (`gaseus`.`pfv`.`product_id` in (12900,12909)) and (`gaseus`.`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": [
"gaseus.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "52.53",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "1.52",
"prefix_cost": "17.23",
"data_read_per_join": "17K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`gaseus`.`fv`.`feature_id` = `gaseus`.`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": [
"gaseus.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.81",
"eval_cost": "1.52",
"prefix_cost": "22.56",
"data_read_per_join": "47K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
12900 |
1973 |
1 |
up to 4.5 (technical gases) |
| 595 |
12900 |
1904 |
0 |
Oxygen (O2) |
| 622 |
12900 |
2485 |
0 |
G 1/2" RH nut (acc. to EN 560) |
| 623 |
12900 |
2486 |
0 |
G 1/2" RH x 9 mm (hose nozzle) |
| 624 |
12900 |
1675 |
0 |
40 |
| 625 |
12900 |
2123 |
0 |
20 |
| 626 |
12900 |
1721 |
0 |
75 |
| 627 |
12900 |
1659 |
1 |
Brass |
| 628 |
12900 |
1660 |
0 |
Single stage |
| 636 |
12900 |
2344 |
0 |
N |
| 637 |
12900 |
2345 |
0 |
N |
| 553 |
12909 |
1973 |
1 |
up to 4.5 (technical gases) |
| 595 |
12909 |
1904 |
0 |
Oxygen (O2) |
| 622 |
12909 |
2485 |
0 |
G 1/2" RH nut (acc. to EN 560) |
| 623 |
12909 |
2486 |
0 |
G 1/2" RH x 9 mm (hose nozzle) |
| 624 |
12909 |
1657 |
0 |
60 |
| 625 |
12909 |
2124 |
0 |
40 |
| 626 |
12909 |
1723 |
0 |
120 |
| 627 |
12909 |
1659 |
1 |
Brass |
| 628 |
12909 |
1660 |
0 |
Single stage |
| 636 |
12909 |
2344 |
0 |
N |
| 637 |
12909 |
2345 |
0 |
N |