Query time 0.00269
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.47"
},
"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": 41,
"rows_produced_per_join": 41,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.67",
"eval_cost": "4.10",
"prefix_cost": "9.77",
"data_read_per_join": "31K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`gaseus`.`pfv`.`feature_id` in (553,624,623)) and (`gaseus`.`pfv`.`product_id` in (10985,11005,11027,11047,11067,11089,11111,11133,11153,11173,11195,11215)) 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": 6,
"filtered": "16.43",
"cost_info": {
"read_cost": "10.25",
"eval_cost": "0.67",
"prefix_cost": "24.12",
"data_read_per_join": "7K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.68",
"eval_cost": "0.67",
"prefix_cost": "26.47",
"data_read_per_join": "21K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
10985 |
1324 |
0 |
up to 4.5 |
| 623 |
10985 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
10985 |
1705 |
0 |
200 |
| 553 |
11005 |
1324 |
0 |
up to 4.5 |
| 623 |
11005 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11005 |
1705 |
0 |
200 |
| 553 |
11027 |
1324 |
0 |
up to 4.5 |
| 623 |
11027 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
11027 |
1705 |
0 |
200 |
| 553 |
11047 |
1324 |
0 |
up to 4.5 |
| 623 |
11047 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
11047 |
1705 |
0 |
200 |
| 553 |
11067 |
1324 |
0 |
up to 4.5 |
| 623 |
11067 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11067 |
1803 |
0 |
300 |
| 553 |
11089 |
1324 |
0 |
up to 4.5 |
| 623 |
11089 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11089 |
1803 |
0 |
300 |
| 553 |
11111 |
1324 |
0 |
up to 4.5 |
| 623 |
11111 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11111 |
1803 |
0 |
300 |
| 553 |
11133 |
1324 |
0 |
up to 4.5 |
| 623 |
11133 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
11133 |
1803 |
0 |
300 |
| 553 |
11153 |
1324 |
0 |
up to 4.5 |
| 623 |
11153 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
11153 |
1803 |
0 |
300 |
| 553 |
11173 |
1324 |
0 |
up to 4.5 |
| 623 |
11173 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11173 |
1803 |
0 |
300 |
| 553 |
11195 |
1324 |
0 |
up to 4.5 |
| 623 |
11195 |
1983 |
0 |
G 3/8 LH x 9 mm (hose grommet) |
| 624 |
11195 |
1803 |
0 |
300 |
| 553 |
11215 |
1324 |
0 |
up to 4.5 |
| 623 |
11215 |
1975 |
0 |
G 1/4 RH x 6 mm (hose grommet) |
| 624 |
11215 |
1705 |
0 |
200 |