Query time 0.00196
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.82"
},
"nested_loop": [
{
"table": {
"table_name": "P",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"cscart_products_product_id_index"
],
"key": "cscart_products_product_id_index",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 5,
"rows_produced_per_join": 5,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.76",
"eval_cost": "0.50",
"prefix_cost": "1.26",
"data_read_per_join": "37K"
},
"used_columns": [
"product_id"
],
"attached_condition": "(`dev2`.`P`.`product_id` in ('7888','7889','8968','8410','8248'))"
}
},
{
"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": [
"dev2.P.product_id"
],
"rows_examined_per_scan": 6,
"rows_produced_per_join": 30,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.79",
"eval_cost": "3.06",
"prefix_cost": "6.11",
"data_read_per_join": "23K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_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": 24,
"filtered": "80.46",
"cost_info": {
"read_cost": "7.65",
"eval_cost": "2.46",
"prefix_cost": "16.82",
"data_read_per_join": "38K"
},
"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": 24,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.16",
"eval_cost": "2.46",
"prefix_cost": "25.44",
"data_read_per_join": "37K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.16",
"eval_cost": "2.49",
"prefix_cost": "34.09",
"data_read_per_join": "68K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.23",
"eval_cost": "2.50",
"prefix_cost": "42.82",
"data_read_per_join": "105K"
},
"used_columns": [
"variant_id",
"variant"
]
}
}
]
}
}
Result
product_id |
name |
variant |
variant_id |
feature_id |
7888 |
Мощность двигателя, кВт |
18.2 |
11355 |
736 |
7888 |
Мощность двигателя, л.с. |
25 |
9004 |
737 |
7888 |
Габариты техники д.ш.в., мм |
4915х1720х2515 |
11398 |
738 |
7888 |
Страна производитель |
Китай |
9730 |
758 |
7889 |
Мощность двигателя, кВт |
120 |
10687 |
736 |
7889 |
Мощность двигателя, л.с. |
163 |
11471 |
737 |
7889 |
Масса техники, кг |
13700 |
10683 |
739 |
7889 |
Страна производитель |
Китай |
9730 |
758 |
7889 |
Глубина копания, мм |
4800 |
9950 |
797 |
8248 |
Мощность двигателя, кВт |
132 |
9674 |
736 |
8248 |
Мощность двигателя, л.с. |
180 |
10361 |
737 |
8248 |
Габариты техники д.ш.в., мм |
6336 х 2460 х 3300 |
11506 |
738 |
8248 |
Масса техники, кг |
8500 |
11507 |
739 |
8248 |
Страна производитель |
Россия |
9729 |
758 |
8968 |
Двигатель |
CUMMINS |
8812 |
735 |
8968 |
Мощность двигателя, кВт |
93 |
10085 |
736 |
8968 |
Мощность двигателя, л.с. |
126 |
10086 |
737 |
8968 |
Габариты техники д.ш.в., мм |
7900 х 2500 х 3255 |
11885 |
738 |
8968 |
Масса техники, кг |
15000 |
9635 |
739 |
8968 |
Страна производитель |
Китай |
9730 |
758 |
8968 |
Глубина копания, мм |
4865 |
11884 |
797 |