Query time 0.00324
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.25"
},
"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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.67",
"eval_cost": "2.60",
"prefix_cost": "6.27",
"data_read_per_join": "20K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (636,647,646,623,622,626,553,625,624,627,628,595,637)) and (`test2_gaseus`.`pfv`.`product_id` in (13163,13170)) 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": 13,
"filtered": "53.58",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "1.39",
"prefix_cost": "15.37",
"data_read_per_join": "15K"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.48",
"eval_cost": "1.39",
"prefix_cost": "20.25",
"data_read_per_join": "43K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
13163 |
1973 |
1 |
up to 4.5 (technical gases) |
| 595 |
13163 |
1905 |
0 |
Nitrogen (N2) |
| 622 |
13163 |
2497 |
0 |
M 24×1.5 RH |
| 623 |
13163 |
2541 |
0 |
G 3/8" × 10 mm |
| 624 |
13163 |
1803 |
0 |
300 |
| 625 |
13163 |
2122 |
0 |
10 |
| 626 |
13163 |
2043 |
0 |
50 |
| 627 |
13163 |
1659 |
1 |
Brass |
| 628 |
13163 |
1660 |
0 |
Single stage |
| 636 |
13163 |
2348 |
0 |
Y |
| 637 |
13163 |
2345 |
0 |
N |
| 646 |
13163 |
2370 |
0 |
Contact gauge |
| 647 |
13163 |
2374 |
0 |
Contact gauge |
| 553 |
13170 |
1973 |
1 |
up to 4.5 (technical gases) |
| 595 |
13170 |
1905 |
0 |
Nitrogen (N2) |
| 622 |
13170 |
2497 |
0 |
M 24×1.5 RH |
| 623 |
13170 |
2501 |
0 |
G 3/4" × 18 mm |
| 624 |
13170 |
1803 |
0 |
300 |
| 625 |
13170 |
2123 |
0 |
20 |
| 626 |
13170 |
1721 |
0 |
75 |
| 627 |
13170 |
1659 |
1 |
Brass |
| 628 |
13170 |
1660 |
0 |
Single stage |
| 636 |
13170 |
2348 |
0 |
Y |
| 637 |
13170 |
2345 |
0 |
N |
| 646 |
13170 |
2370 |
0 |
Contact gauge |
| 647 |
13170 |
2374 |
0 |
Contact gauge |