Query time 0.00044
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.86"
},
"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": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`pfv`.`variant_id` in (1516,1463,1279,1518,1523,1517,1515,1525,1526,1527,1524,1528,1532,1521,1533,1531,1530))",
"cost_info": {
"read_cost": "10.21",
"eval_cost": "1.70",
"prefix_cost": "11.91",
"data_read_per_join": "19K"
},
"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": [
"wearethehelpful_scalesta_net.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "17.86",
"data_read_per_join": "51K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1279 |
0 |
Blue |
| 1463 |
0 |
Black |
| 1515 |
0 |
Black |
| 1516 |
0 |
green |
| 1517 |
0 |
m |
| 1518 |
0 |
L |
| 1521 |
0 |
red |
| 1523 |
0 |
Blue |
| 1524 |
0 |
x |
| 1525 |
0 |
y |
| 1526 |
0 |
Blauw |
| 1527 |
0 |
n |
| 1528 |
0 |
a |
| 1530 |
0 |
c |
| 1531 |
0 |
a |
| 1532 |
0 |
nb |
| 1533 |
0 |
white |