Query time 0.00389
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "49.83"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 80,
"rows_produced_per_join": 26,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (1584,1583,1582,1581,1580)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "34.66",
"eval_cost": "2.60",
"prefix_cost": "37.26",
"data_read_per_join": "20K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.v.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "9.53",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "0.25",
"prefix_cost": "46.36",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"feature_type",
"categories_path",
"parent_id",
"display_on_catalog",
"status",
"position"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`f`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`f`.`display_on_catalog` = 'Y') and ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path` = '') or (0 <> find_in_set(166,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(328,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(341,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(250,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(402,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(404,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`))) and (if(`softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`,(/* select#2 */ select `softwarepirmam_hewadelivard_cscart_4`.`df`.`status` from `softwarepirmam_hewadelivard_cscart_4`.`cscart_product_features` `df` where (`softwarepirmam_hewadelivard_cscart_4`.`df`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`)),'A') = 'A') and ((`softwarepirmam_hewadelivard_cscart_4`.`v`.`variant_id` <> 0) or ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` <> 'C') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value` <> '')) or (`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` = 'C') or (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value_int` <> 0)))",
"attached_subqueries": [
{
"dependent": true,
"cacheable": false,
"query_block": {
"select_id": 2,
"cost_info": {
"query_cost": "0.35"
},
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.35",
"data_read_per_join": "440"
},
"used_columns": [
"feature_id",
"status"
]
}
}
}
]
}
},
{
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.v.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.62",
"eval_cost": "0.25",
"prefix_cost": "47.23",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"description",
"prefix",
"suffix",
"lang_code"
]
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.62",
"eval_cost": "0.25",
"prefix_cost": "48.10",
"data_read_per_join": "2K"
},
"used_columns": [
"variant_id",
"position"
]
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.fv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.62",
"eval_cost": "0.25",
"prefix_cost": "48.97",
"data_read_per_join": "7K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "gf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.62",
"eval_cost": "0.25",
"prefix_cost": "49.83",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"feature_type",
"position"
],
"attached_condition": "<if>(is_not_null_compl(gf), (`softwarepirmam_hewadelivard_cscart_4`.`gf`.`feature_type` = 'G'), true)"
}
}
]
}
}
}
Result
| product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
| 1580 |
657 |
|
|
1945 |
E |
Brand |
|
|
Huawei |
0 |
0 |
|
| 1583 |
657 |
|
|
1945 |
E |
Brand |
|
|
Huawei |
0 |
0 |
|
| 1582 |
657 |
|
|
1945 |
E |
Brand |
|
|
Huawei |
0 |
0 |
|
| 1581 |
657 |
|
|
1945 |
E |
Brand |
|
|
Huawei |
0 |
0 |
|
| 1584 |
657 |
|
|
1945 |
E |
Brand |
|
|
Huawei |
0 |
0 |
|
| 1583 |
669 |
|
|
2033 |
S |
Maximum Device Rate |
|
|
9 Mpps to 25 Mpps |
0 |
280 |
|
| 1582 |
669 |
|
|
2026 |
S |
Maximum Device Rate |
|
|
8 Gbps |
0 |
280 |
|
| 1581 |
669 |
|
|
2026 |
S |
Maximum Device Rate |
|
|
8 Gbps |
0 |
280 |
|
| 1580 |
669 |
|
|
1983 |
S |
Maximum Device Rate |
|
|
16 Gbps |
0 |
280 |
|
| 1583 |
668 |
|
|
2032 |
S |
Maximum User Capacity |
|
|
Supports up to 700 users |
0 |
270 |
|
| 1581 |
668 |
|
|
2025 |
S |
Maximum User Capacity |
|
|
Supports up to 200 users |
0 |
270 |
|
| 1580 |
668 |
|
|
1955 |
S |
Maximum User Capacity |
|
|
Up to 300 users |
0 |
270 |
|
| 1584 |
668 |
|
|
2000 |
S |
Maximum User Capacity |
|
|
Supports up to 200 users |
0 |
270 |
|
| 1582 |
668 |
|
|
2025 |
S |
Maximum User Capacity |
|
|
Supports up to 200 users |
0 |
270 |
|
| 1580 |
663 |
|
|
1979 |
S |
Mounting Options |
|
|
Rack mounting, desk mounting, wall mounting |
0 |
220 |
|
| 1583 |
663 |
|
|
2029 |
S |
Mounting Options |
|
|
Rack mounting, Desk mounting |
0 |
220 |
|
| 1584 |
663 |
|
|
2034 |
S |
Mounting Options |
|
|
Desktop placement |
0 |
220 |
|
| 1582 |
663 |
|
|
1985 |
S |
Mounting Options |
|
|
Desk mounting, Wall mounting |
0 |
220 |
|
| 1581 |
663 |
|
|
1985 |
S |
Mounting Options |
|
|
Desk mounting, Wall mounting |
0 |
220 |
|
| 1582 |
665 |
|
|
2027 |
S |
Network Ports |
|
|
1 × 10/100/1000BASE-T WAN port, 4 × 10/100/1000BASE-T LAN ports |
0 |
240 |
|
| 1583 |
665 |
|
|
2030 |
S |
Network Ports |
|
|
2 × GE Combo WAN ports (supporting both copper and fiber connections), 8 × GE LAN ports (electrical interfaces; can be switched to WAN ports) |
0 |
240 |
|
| 1581 |
665 |
|
|
2024 |
S |
Network Ports |
|
|
1 × 10/100/1000BASE-T WAN port, 4 × 10/100/1000BASE-T LAN ports with PoE+ support |
0 |
240 |
|
| 1584 |
665 |
|
|
2035 |
S |
Network Ports |
|
|
1 × GE Combo WAN port (RJ45/SFP), 4 × GE LAN ports (RJ45; can be configured as WAN ports), 1 × USB 2.0 port, 1 × Console port |
0 |
240 |
|
| 1580 |
665 |
|
|
2016 |
S |
Network Ports |
|
|
2 × 10/100/1000BASE-T WAN ports, 8 × 10/100/1000BASE-T LAN ports |
0 |
240 |
|
| 1582 |
666 |
|
|
2028 |
S |
Power Support |
|
|
External power adapter (Input: 100–240 V AC; Output: 12 V DC) |
0 |
250 |
|
| 1583 |
666 |
|
|
2031 |
S |
Power Support |
|
|
AC input voltage: 100–240 V; AC input frequency: 50/60 Hz |
0 |
250 |
|
| 1581 |
666 |
|
|
1987 |
S |
Power Support |
|
|
External power adapter (Input: 100–240 V AC, Output: 56 V DC) |
0 |
250 |
|
| 1580 |
666 |
|
|
2017 |
S |
Power Support |
|
|
Built-in AC power supply (100–240 V AC, 50/60 Hz) |
0 |
250 |
|
| 1584 |
666 |
|
|
2031 |
S |
Power Support |
|
|
AC input voltage: 100–240 V; AC input frequency: 50/60 Hz |
0 |
250 |
|