Query time 0.00034
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.36"
},
"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": 7,
"rows_produced_per_join": 7,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`pfv`.`variant_id` in (1245,1283,1341,1342,1343,1344,1345))",
"cost_info": {
"read_cost": "4.21",
"eval_cost": "0.70",
"prefix_cost": "4.91",
"data_read_per_join": "7K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.75",
"eval_cost": "0.70",
"prefix_cost": "7.36",
"data_read_per_join": "21K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1245 |
0 |
Small |
| 1283 |
0 |
Large |
| 1341 |
0 |
Small / Medium |
| 1342 |
0 |
Medium / Large |
| 1343 |
0 |
Medium |
| 1344 |
0 |
Extra Small |
| 1345 |
0 |
Extra Large |