Query time 0.00335
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.35"
},
"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": 45,
"rows_produced_per_join": 45,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.98",
"eval_cost": "4.50",
"prefix_cost": "10.48",
"data_read_per_join": "34K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (595,628,627,624,625,553,626,622,623,636,637)) and (`test2_gaseus`.`pfv`.`product_id` in (13274,13286,13280,13292)) and (`test2_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": [
"test2_gaseus.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "51.58",
"cost_info": {
"read_cost": "11.25",
"eval_cost": "2.32",
"prefix_cost": "26.23",
"data_read_per_join": "26K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`test2_gaseus`.`fv`.`feature_id` = `test2_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": [
"test2_gaseus.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.80",
"eval_cost": "2.32",
"prefix_cost": "34.35",
"data_read_per_join": "72K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
13274 |
1912 |
1 |
up to 5.0 (laboratory gases / laser gases) |
| 595 |
13274 |
1904 |
0 |
Oxygen (O2) |
| 622 |
13274 |
2559 |
0 |
Clamp ring 8 mm |
| 623 |
13274 |
2524 |
0 |
Clamp ring 8 mm |
| 624 |
13274 |
1694 |
0 |
20 |
| 625 |
13274 |
2122 |
0 |
10 |
| 626 |
13274 |
1917 |
0 |
45 |
| 627 |
13274 |
2290 |
0 |
Chrome-plated |
| 628 |
13274 |
1660 |
0 |
Single stage |
| 636 |
13274 |
2344 |
0 |
N |
| 637 |
13274 |
2345 |
0 |
N |
| 553 |
13280 |
1912 |
1 |
up to 5.0 (laboratory gases / laser gases) |
| 595 |
13280 |
1904 |
0 |
Oxygen (O2) |
| 622 |
13280 |
2559 |
0 |
Clamp ring 8 mm |
| 623 |
13280 |
2524 |
0 |
Clamp ring 8 mm |
| 624 |
13280 |
1694 |
0 |
20 |
| 625 |
13280 |
2413 |
0 |
1.5 |
| 626 |
13280 |
1926 |
0 |
8 |
| 627 |
13280 |
2290 |
0 |
Chrome-plated |
| 628 |
13280 |
1660 |
0 |
Single stage |
| 636 |
13280 |
2344 |
0 |
N |
| 637 |
13280 |
2345 |
0 |
N |
| 553 |
13286 |
1912 |
1 |
up to 5.0 (laboratory gases / laser gases) |
| 595 |
13286 |
1904 |
0 |
Oxygen (O2) |
| 622 |
13286 |
2559 |
0 |
Clamp ring 8 mm |
| 623 |
13286 |
2524 |
0 |
Clamp ring 8 mm |
| 624 |
13286 |
1694 |
0 |
20 |
| 625 |
13286 |
2122 |
0 |
10 |
| 626 |
13286 |
1928 |
0 |
30 |
| 627 |
13286 |
2290 |
0 |
Chrome-plated |
| 628 |
13286 |
1712 |
0 |
Double stage |
| 636 |
13286 |
2344 |
0 |
N |
| 637 |
13286 |
2345 |
0 |
N |
| 553 |
13292 |
1912 |
1 |
up to 5.0 (laboratory gases / laser gases) |
| 595 |
13292 |
1904 |
0 |
Oxygen (O2) |
| 622 |
13292 |
2559 |
0 |
Clamp ring 8 mm |
| 623 |
13292 |
2524 |
0 |
Clamp ring 8 mm |
| 624 |
13292 |
1694 |
0 |
20 |
| 625 |
13292 |
2413 |
0 |
1.5 |
| 626 |
13292 |
1926 |
0 |
8 |
| 627 |
13292 |
2290 |
0 |
Chrome-plated |
| 628 |
13292 |
1712 |
0 |
Double stage |
| 636 |
13292 |
2344 |
0 |
N |
| 637 |
13292 |
2345 |
0 |
N |