Query time 0.00063
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.62"
},
"nested_loop": [
{
"table": {
"table_name": "pfvd",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"rows_examined_per_scan": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.22",
"eval_cost": "2.20",
"prefix_cost": "15.42",
"data_read_per_join": "49K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (62784,64121,64125,64119,64123,62211,64114,64115,64116,64117,60248)) and (`webmarco`.`pfvd`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "pfv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"webmarco.pfvd.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.00",
"eval_cost": "2.20",
"prefix_cost": "28.62",
"data_read_per_join": "12K"
},
"used_columns": [
"variant_id",
"position"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
60248 |
0 |
Herbs |
62211 |
0 |
Grape |
62784 |
0 |
Original |
64114 |
0 |
5cl |
64115 |
0 |
10cl |
64116 |
0 |
20cl |
64117 |
0 |
BIG |
64119 |
1 |
20ml |
64121 |
3 |
5cl. |
64123 |
5 |
BIG |
64125 |
0 |
10cl. |