Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.81"
},
"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": "(`atulecarter_atul_demo1`.`pfv`.`variant_id` in (1202,1203,1204,1205,1219,1220,1221,1222))",
"cost_info": {
"read_cost": "17.61",
"eval_cost": "1.60",
"prefix_cost": "19.21",
"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": [
"atulecarter_atul_demo1.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "1.60",
"prefix_cost": "28.81",
"data_read_per_join": "24K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
1202 |
1 |
Standard Room |
1203 |
2 |
Deluxe Room |
1204 |
3 |
Suite Room |
1205 |
4 |
Family Room |
1219 |
1 |
Continental breakfast included |
1220 |
2 |
Pool area |
1221 |
3 |
Free Wifi |
1222 |
4 |
Smoking area |