Query time 0.00320
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "114.30"
},
"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": 180,
"rows_produced_per_join": 58,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (3550,3220,5107,6112,2429,3805,2921,3524,3668,3702,3670,3684,3682,3230,3303,3545,3687,3727,3699,6163)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "80.16",
"eval_cost": "5.85",
"prefix_cost": "86.01",
"data_read_per_join": "45K"
},
"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": 5,
"filtered": "9.53",
"cost_info": {
"read_cost": "14.63",
"eval_cost": "0.56",
"prefix_cost": "106.49",
"data_read_per_join": "2K"
},
"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(423,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(424,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(450,`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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.39",
"eval_cost": "0.56",
"prefix_cost": "108.45",
"data_read_per_join": "12K"
},
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.39",
"eval_cost": "0.56",
"prefix_cost": "110.40",
"data_read_per_join": "6K"
},
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.39",
"eval_cost": "0.56",
"prefix_cost": "112.35",
"data_read_per_join": "16K"
},
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.39",
"eval_cost": "0.56",
"prefix_cost": "114.30",
"data_read_per_join": "2K"
},
"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 |
| 6163 |
657 |
|
|
1665 |
E |
Brand |
|
|
Apple |
0 |
0 |
|
| 3668 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3550 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3670 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3545 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3682 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3524 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3684 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3303 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3687 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3699 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3230 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3702 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3727 |
657 |
|
|
3961 |
E |
Brand |
|
|
Baykron |
0 |
0 |
|
| 3220 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 3805 |
657 |
|
|
3933 |
E |
Brand |
|
|
Belkin |
0 |
0 |
|
| 5107 |
657 |
|
|
6600 |
E |
Brand |
|
|
Philips |
0 |
0 |
|
| 2921 |
657 |
|
|
2082 |
E |
Brand |
|
|
Anker |
0 |
0 |
|
| 6112 |
657 |
|
|
1665 |
E |
Brand |
|
|
Apple |
0 |
0 |
|
| 2429 |
657 |
|
|
2082 |
E |
Brand |
|
|
Anker |
0 |
0 |
|
| 3687 |
708 |
|
|
4425 |
S |
Cable Length |
|
|
1.2m |
0 |
0 |
|
| 3684 |
708 |
|
|
4425 |
S |
Cable Length |
|
|
1.2m |
0 |
0 |
|
| 3682 |
708 |
|
|
4425 |
S |
Cable Length |
|
|
1.2m |
0 |
0 |
|
| 3668 |
708 |
|
|
4425 |
S |
Cable Length |
|
|
1.2m |
0 |
0 |
|
| 3670 |
708 |
|
|
3783 |
S |
Cable Length |
|
|
2m |
0 |
0 |
|
| 3524 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3727 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3230 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3702 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3699 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3805 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3220 |
656 |
|
|
1559 |
S |
Color |
|
|
white |
0 |
160 |
|
| 3303 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3687 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 5107 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3684 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3545 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3682 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 6112 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 2921 |
656 |
|
|
1559 |
S |
Color |
|
|
white |
0 |
160 |
|
| 6163 |
656 |
|
|
1559 |
S |
Color |
|
|
white |
0 |
160 |
|
| 3670 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3550 |
656 |
|
|
1559 |
S |
Color |
|
|
white |
0 |
160 |
|
| 2429 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 3668 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 2921 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 5107 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3550 |
659 |
|
|
2892 |
S |
Connectivity |
|
|
USB-A to Lightning Connector |
0 |
152 |
|
| 3805 |
659 |
|
|
4197 |
S |
Connectivity |
|
|
USB-C to USB-C. |
0 |
152 |
|
| 3727 |
659 |
|
|
4699 |
S |
Connectivity |
|
|
3.5mm Audio Jack to 3.5mm Audio Jack |
0 |
152 |
|
| 3220 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3702 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3699 |
659 |
|
|
4696 |
S |
Connectivity |
|
|
USB-A to Micro |
0 |
152 |
|
| 3230 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3687 |
659 |
|
|
4696 |
S |
Connectivity |
|
|
USB-A to Micro |
0 |
152 |
|
| 3303 |
659 |
|
|
3967 |
S |
Connectivity |
|
|
USB4 |
0 |
152 |
|
| 3684 |
659 |
|
|
2696 |
S |
Connectivity |
|
|
USB-A to USB-C |
0 |
152 |
|
| 3524 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3682 |
659 |
|
|
2862 |
S |
Connectivity |
|
|
USB-C to USB-C |
0 |
152 |
|
| 3670 |
659 |
|
|
2895 |
S |
Connectivity |
|
|
USB-C to Lightning Cable |
0 |
152 |
|
| 3545 |
659 |
|
|
4252 |
S |
Connectivity |
|
|
USB-C USB-C. |
0 |
152 |
|
| 3668 |
659 |
|
|
4694 |
S |
Connectivity |
|
|
USB-A to Lightning cable |
0 |
152 |
|
| 3230 |
684 |
|
|
3631 |
S |
Output |
|
|
240 watts RMS. |
0 |
320 |
|
| 2429 |
645 |
|
|
3795 |
S |
Ports |
|
|
USB-C to USB-C |
0 |
110 |
|