Query time 0.00246
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.87"
},
"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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.95",
"eval_cost": "2.00",
"prefix_cost": "4.95",
"data_read_per_join": "15K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (627,628,553,625,624)) and (`test2_gaseus`.`pfv`.`product_id` in (12594,12424,12554,12536)) 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": 2,
"filtered": "13.16",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "0.26",
"prefix_cost": "11.95",
"data_read_per_join": "3K"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.66",
"eval_cost": "0.26",
"prefix_cost": "12.87",
"data_read_per_join": "8K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
12424 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12424 |
1949 |
0 |
70 |
| 625 |
12424 |
2413 |
0 |
1.5 |
| 627 |
12424 |
2378 |
0 |
Chrome-plated brass |
| 628 |
12424 |
1660 |
0 |
Single stage |
| 553 |
12536 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12536 |
1803 |
0 |
300 |
| 625 |
12536 |
2423 |
0 |
1.7 |
| 627 |
12536 |
2424 |
0 |
Nickel-plated |
| 628 |
12536 |
1660 |
0 |
Single stage |
| 553 |
12554 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12554 |
1949 |
0 |
70 |
| 625 |
12554 |
2413 |
0 |
1.5 |
| 627 |
12554 |
1836 |
0 |
Stainless steel |
| 628 |
12554 |
1712 |
0 |
Double stage |
| 553 |
12594 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12594 |
2403 |
0 |
15 |
| 625 |
12594 |
2433 |
0 |
0.05 |
| 627 |
12594 |
1836 |
0 |
Stainless steel |
| 628 |
12594 |
1660 |
0 |
Single stage |