Query time 0.00106
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": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id"
],
"key_length": "6",
"rows_examined_per_scan": 31,
"rows_produced_per_join": 13,
"filtered": "42.69",
"using_index": true,
"cost_info": {
"read_cost": "6.20",
"eval_cost": "1.32",
"prefix_cost": "7.53",
"data_read_per_join": "10K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`gaseus`.`pfv`.`feature_id` in (553,622)) and (`gaseus`.`pfv`.`product_id` in (12116,12118,12132,12146,12160,12174,12188,12202)) 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": 2,
"filtered": "15.28",
"cost_info": {
"read_cost": "3.31",
"eval_cost": "0.20",
"prefix_cost": "12.16",
"data_read_per_join": "2K"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.20",
"prefix_cost": "12.87",
"data_read_per_join": "6K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
12116 |
1324 |
0 |
up to 4.5 |
| 553 |
12118 |
1324 |
0 |
up to 4.5 |
| 553 |
12132 |
1324 |
0 |
up to 4.5 |
| 553 |
12146 |
1324 |
0 |
up to 4.5 |
| 553 |
12160 |
1324 |
0 |
up to 4.5 |
| 553 |
12174 |
1324 |
0 |
up to 4.5 |
| 553 |
12188 |
1324 |
0 |
up to 4.5 |
| 553 |
12202 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 622 |
12116 |
2047 |
0 |
G 1/2 RHak (according to EN 560) |
| 622 |
12118 |
2170 |
0 |
External thread G1/2" RHk according to EN 560 |
| 622 |
12132 |
2170 |
0 |
External thread G1/2" RHk according to EN 560 |
| 622 |
12146 |
2170 |
0 |
External thread G1/2" RHk according to EN 560 |
| 622 |
12160 |
2189 |
0 |
Female thread G1/2" RHi |
| 622 |
12174 |
2189 |
0 |
Female thread G1/2" RHi |
| 622 |
12188 |
2189 |
0 |
Female thread G1/2" RHi |
| 622 |
12202 |
2189 |
0 |
Female thread G1/2" RHi |