Query time 0.00082
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 (62223,62224,62225,62226,62227,63600,63601,63602,63603,63604,63605)) 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 |
62223 |
0 |
103 |
62224 |
0 |
104 |
62225 |
0 |
105 |
62226 |
0 |
106 |
62227 |
0 |
107 |
63600 |
0 |
202 |
63601 |
0 |
203 |
63602 |
0 |
204 |
63603 |
0 |
205 |
63604 |
0 |
206 |
63605 |
0 |
207 |