Query time 0.00053
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.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": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`cscart`.`pfv`.`variant_id` in (1282,1284,1226,1289,1288,1287,1286,1285,1290))",
"cost_info": {
"read_cost": "19.81",
"eval_cost": "1.80",
"prefix_cost": "21.61",
"data_read_per_join": "10K"
},
"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": [
"cscart.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "32.41",
"data_read_per_join": "28K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1226 |
2 |
Белый |
| 1282 |
0 |
Серо-Белый |
| 1284 |
0 |
Бордово-Белый |
| 1285 |
0 |
Бордово-Черный |
| 1286 |
0 |
Желто-Черный |
| 1287 |
0 |
Желто-Белый |
| 1288 |
0 |
Зелено-Золотой |
| 1289 |
0 |
Сине-Золотой |
| 1290 |
0 |
Серо-Золотой |