Query time 0.00059
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.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": 13,
"rows_produced_per_join": 13,
"filtered": "100.00",
"index_condition": "(`cscart`.`pfv`.`variant_id` in (1294,1226,1297,1295,1287,1286,1283,1282,1296,1298,1284,1300,1299))",
"cost_info": {
"read_cost": "28.61",
"eval_cost": "2.60",
"prefix_cost": "31.21",
"data_read_per_join": "14K"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.00",
"eval_cost": "2.60",
"prefix_cost": "46.81",
"data_read_per_join": "40K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 1226 |
2 |
Белый |
| 1282 |
0 |
Серо-Белый |
| 1283 |
0 |
Серо-Черный |
| 1284 |
0 |
Бордово-Белый |
| 1286 |
0 |
Желто-Черный |
| 1287 |
0 |
Желто-Белый |
| 1294 |
0 |
Бежево-Черный |
| 1295 |
0 |
Бежево-Белый |
| 1296 |
0 |
Темно-Серо-Черный |
| 1297 |
0 |
Бело-Черный |
| 1298 |
0 |
Зелено-Черный |
| 1299 |
0 |
Коричнево-Белый |
| 1300 |
0 |
Зелено-Белый |