Query time 0.00205
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.04"
},
"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": 30,
"rows_produced_per_join": 30,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.16",
"eval_cost": "3.00",
"prefix_cost": "7.16",
"data_read_per_join": "23K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (553,625,628,627,624)) and (`test2_gaseus`.`pfv`.`product_id` in (12349,12364,12259,12504,12524,12379)) 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": 3,
"filtered": "13.16",
"cost_info": {
"read_cost": "7.50",
"eval_cost": "0.39",
"prefix_cost": "17.66",
"data_read_per_join": "4K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.99",
"eval_cost": "0.39",
"prefix_cost": "19.04",
"data_read_per_join": "12K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 553 |
12259 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12259 |
2381 |
0 |
210 |
| 625 |
12259 |
2129 |
0 |
1,5 |
| 627 |
12259 |
2378 |
0 |
Chrome-plated brass |
| 628 |
12259 |
1712 |
0 |
Double stage |
| 553 |
12349 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12349 |
2403 |
0 |
15 |
| 625 |
12349 |
2133 |
0 |
0,05 |
| 627 |
12349 |
2378 |
0 |
Chrome-plated brass |
| 628 |
12349 |
1660 |
0 |
Single stage |
| 553 |
12364 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12364 |
2381 |
0 |
210 |
| 625 |
12364 |
2408 |
0 |
0,050 |
| 627 |
12364 |
2378 |
0 |
Chrome-plated brass |
| 628 |
12364 |
1712 |
0 |
Double stage |
| 553 |
12379 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12379 |
1949 |
0 |
70 |
| 625 |
12379 |
2413 |
0 |
1.5 |
| 627 |
12379 |
2290 |
0 |
Chrome-plated |
| 628 |
12379 |
1660 |
0 |
Single stage |
| 553 |
12504 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12504 |
2381 |
0 |
210 |
| 625 |
12504 |
2423 |
0 |
1.7 |
| 627 |
12504 |
2424 |
0 |
Nickel-plated |
| 628 |
12504 |
1660 |
0 |
Single stage |
| 553 |
12524 |
1935 |
1 |
up to 6.0 (ultrapure gases) |
| 624 |
12524 |
2381 |
0 |
210 |
| 625 |
12524 |
2423 |
0 |
1.7 |
| 627 |
12524 |
2424 |
0 |
Nickel-plated |
| 628 |
12524 |
1712 |
0 |
Double stage |