Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.76"
},
"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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`pfv`.`variant_id` in (1235,1236,1237,1238,1309,1310,1311,1312,1323,1320,1296,1324,1325,1321,1322))",
"cost_info": {
"read_cost": "9.01",
"eval_cost": "1.50",
"prefix_cost": "10.51",
"data_read_per_join": "17K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "15.76",
"data_read_per_join": "45K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1235 |
0 |
White / Rosé |
| 1236 |
0 |
Red / Rosé |
| 1237 |
0 |
White / Red |
| 1238 |
0 |
I'm not fussy! |
| 1296 |
0 |
Whole Beans |
| 1309 |
0 |
Medium Grind |
| 1310 |
0 |
Whole Beans |
| 1311 |
0 |
Fine Grind |
| 1312 |
0 |
Coarse Grind |
| 1320 |
0 |
Medium Grind (Filter) |
| 1321 |
0 |
Fine Grind (Espresso) |
| 1322 |
0 |
Coarse Grind (French Press) |
| 1323 |
0 |
200g |
| 1324 |
0 |
60g |
| 1325 |
0 |
1kg |