Query time 0.00066
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "18.91"
},
"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": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`pfv`.`variant_id` in (6,1362,1361,1360,1359,1358,1357,1370,1369,1368,1367,1366,1365,1371,1373,1392,1391,1390))",
"cost_info": {
"read_cost": "10.81",
"eval_cost": "1.80",
"prefix_cost": "12.61",
"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": [
"test_uchur_k.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.50",
"eval_cost": "1.80",
"prefix_cost": "18.91",
"data_read_per_join": "56K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 6 |
0 |
OSFA |
| 1357 |
0 |
S |
| 1358 |
0 |
M |
| 1359 |
0 |
L |
| 1360 |
0 |
XL |
| 1361 |
0 |
2XL |
| 1362 |
0 |
3XL |
| 1365 |
0 |
32x30 |
| 1366 |
0 |
34x30 |
| 1367 |
0 |
36x30 |
| 1368 |
0 |
38x30 |
| 1369 |
0 |
40x30 |
| 1370 |
0 |
42x30 |
| 1371 |
0 |
30x30 |
| 1373 |
0 |
OSFA |
| 1390 |
0 |
41 |
| 1391 |
0 |
42 |
| 1392 |
0 |
43 |