Query time 0.00052
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.91"
},
"nested_loop": [
{
"table": {
"table_name": "P",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"cscart_products_product_id_index"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "7K"
},
"used_columns": [
"product_id"
]
}
},
{
"table": {
"table_name": "PFV",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.63",
"eval_cost": "1.10",
"prefix_cost": "1.73",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "(`dev2`.`PFV`.`product_id` = '5390')"
}
},
{
"table": {
"table_name": "PF",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"dev2.PFV.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "80.46",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "0.89",
"prefix_cost": "5.58",
"data_read_per_join": "13K"
},
"used_columns": [
"feature_id",
"status"
],
"attached_condition": "(`dev2`.`PF`.`status` = 'A')"
}
},
{
"table": {
"table_name": "PFVS",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"dev2.PFV.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.21",
"eval_cost": "0.89",
"prefix_cost": "8.67",
"data_read_per_join": "13K"
},
"used_columns": [
"variant_id"
]
}
},
{
"table": {
"table_name": "PFD",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"dev2.PFV.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.21",
"eval_cost": "0.90",
"prefix_cost": "11.78",
"data_read_per_join": "24K"
},
"used_columns": [
"feature_id",
"internal_name"
]
}
},
{
"table": {
"table_name": "PFVD",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"dev2.PFV.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.24",
"eval_cost": "0.90",
"prefix_cost": "14.92",
"data_read_per_join": "38K"
},
"used_columns": [
"variant_id",
"variant"
]
}
}
]
}
}
Result
product_id |
name |
variant |
variant_id |
feature_id |
5390 |
Двигатель |
Cummins ISDe 200 50 |
9361 |
735 |
5390 |
Мощность двигателя, кВт |
140 |
9362 |
736 |
5390 |
Мощность двигателя, л.с. |
190 |
9363 |
737 |
5390 |
Габариты техники д.ш.в., мм |
8245 х 2450 х 3165..3400 |
9364 |
738 |
5390 |
Масса техники, кг |
11000 |
9365 |
739 |
5390 |
Шины |
8.25 R20 / 9 R22.5 / 255/70 R22.5 |
9366 |
745 |
5390 |
Объем топливного бака, л. |
7.8 |
9367 |
746 |
5390 |
Максимальная скорость, км/ч |
100 |
9112 |
748 |
5390 |
Количество мест в автобусе |
29+1+1 |
9368 |
750 |
5390 |
Страна производитель |
Китай |
9730 |
758 |