Query time 0.00063
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "59.83"
},
"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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "27.64",
"eval_cost": "4.60",
"prefix_cost": "32.24",
"data_read_per_join": "103K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (63589,63590,63591,63592,63593,63594,63595,63597,62221,63598,62223,62224,62225,62226,62227,63600,63601,63602,63603,63604,63605,62228,63599)) 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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "4.60",
"prefix_cost": "59.84",
"data_read_per_join": "26K"
},
"used_columns": [
"variant_id",
"position"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
62221 |
0 |
101 |
62223 |
0 |
103 |
62224 |
0 |
104 |
62225 |
0 |
105 |
62226 |
0 |
106 |
62227 |
0 |
107 |
62228 |
0 |
108 |
63589 |
0 |
V1 |
63590 |
0 |
V2 |
63591 |
0 |
V3 |
63592 |
0 |
V4 |
63593 |
0 |
V5 |
63594 |
0 |
V6 |
63595 |
0 |
V9 |
63597 |
0 |
V10 |
63598 |
0 |
208 |
63599 |
0 |
201 |
63600 |
0 |
202 |
63601 |
0 |
203 |
63602 |
0 |
204 |
63603 |
0 |
205 |
63604 |
0 |
206 |
63605 |
0 |
207 |