Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.02"
},
"nested_loop": [
{
"table": {
"table_name": "PFV",
"access_type": "range",
"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",
"rows_examined_per_scan": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.93",
"eval_cost": "1.40",
"prefix_cost": "3.33",
"data_read_per_join": "10K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "(`dev2`.`PFV`.`product_id` in ('32408','32429','27392','27394','14693'))"
}
},
{
"table": {
"table_name": "P",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"cscart_products_product_id_index"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"dev2.PFV.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "8.23",
"data_read_per_join": "105K"
},
"used_columns": [
"product_id"
]
}
},
{
"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": 11,
"filtered": "80.46",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.13",
"prefix_cost": "13.13",
"data_read_per_join": "17K"
},
"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": 11,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.82",
"eval_cost": "1.13",
"prefix_cost": "17.08",
"data_read_per_join": "17K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.82",
"eval_cost": "1.14",
"prefix_cost": "21.03",
"data_read_per_join": "31K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.85",
"eval_cost": "1.14",
"prefix_cost": "25.02",
"data_read_per_join": "48K"
},
"used_columns": [
"variant_id",
"variant"
]
}
}
]
}
}
Result
product_id |
name |
variant |
variant_id |
feature_id |
27392 |
Грузоподъемность, кг |
29760 |
14115 |
741 |
27392 |
Шины |
385/65R 22.5 |
14108 |
745 |
27392 |
Страна производитель |
Россия |
9729 |
758 |
27392 |
Высота ССУ, мм |
1150 |
9822 |
776 |
27392 |
Объём полуприцепа, м3 |
85 |
14114 |
807 |
27394 |
Габариты техники д.ш.в., мм |
16 990 х 2 600 х 4 000 |
14116 |
738 |
27394 |
Грузоподъемность, кг |
36100 |
14121 |
741 |
27394 |
Шины |
385/65R 22.5 |
14108 |
745 |
27394 |
Страна производитель |
Россия |
9729 |
758 |
27394 |
Высота ССУ, мм |
1150 |
9822 |
776 |
27394 |
Объём полуприцепа, м3 |
104 |
14118 |
807 |