Query time 0.00078
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.21"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "(`test2_gaseus`.`pfv`.`variant_id` in (1973,1789,2497,2541,1803,2122,2043,1659,1660,2348,2345,2370,2374,2499,1787,1900,1899,1905,1904,2501,2123,1721,2369,2373))",
"cost_info": {
"read_cost": "14.41",
"eval_cost": "2.40",
"prefix_cost": "16.81",
"data_read_per_join": "27K"
},
"used_columns": [
"variant_id",
"position"
]
}
},
{
"table": {
"table_name": "pfvd",
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "25.21",
"data_read_per_join": "74K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1659 |
1 |
Brass |
| 1660 |
0 |
Single stage |
| 1721 |
0 |
75 |
| 1787 |
0 |
Helium (He) |
| 1789 |
0 |
Argon (Ar) |
| 1803 |
0 |
300 |
| 1899 |
0 |
Compressed Air (mixture) |
| 1900 |
0 |
Hydrogen (H2) |
| 1904 |
0 |
Oxygen (O2) |
| 1905 |
0 |
Nitrogen (N2) |
| 1973 |
1 |
up to 4.5 (technical gases) |
| 2043 |
0 |
50 |
| 2122 |
0 |
10 |
| 2123 |
0 |
20 |
| 2345 |
0 |
N |
| 2348 |
0 |
Y |
| 2369 |
0 |
Gauge |
| 2370 |
0 |
Contact gauge |
| 2373 |
0 |
Gauge |
| 2374 |
0 |
Contact gauge |
| 2497 |
0 |
M 24×1.5 RH |
| 2499 |
0 |
CO₂ (CO2) |
| 2501 |
0 |
G 3/4" × 18 mm |
| 2541 |
0 |
G 3/8" × 10 mm |