Query time 0.00065
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "8.41"
},
"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": 8,
"rows_produced_per_join": 8,
"filtered": "100.00",
"index_condition": "(`chocoramo`.`pfv`.`variant_id` in (6024,6025,6026,6027,6028,6029,6030,6031))",
"cost_info": {
"read_cost": "4.81",
"eval_cost": "0.80",
"prefix_cost": "5.61",
"data_read_per_join": "9K"
},
"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": [
"chocoramo.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.80",
"prefix_cost": "8.41",
"data_read_per_join": "24K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
6024 |
0 |
4 x 6 |
6025 |
1 |
5 x 7 |
6026 |
2 |
8 x 10 |
6027 |
3 |
11 x 14 |
6028 |
4 |
16 x 20 matte |
6029 |
5 |
16 x 20 satin |
6030 |
6 |
18 x 24 matte |
6031 |
7 |
18 x 24 satin |