Query time 0.00233
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "44.73"
},
"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": 72,
"rows_produced_per_join": 23,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (6019,3139,5157,2700)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "31.07",
"eval_cost": "2.34",
"prefix_cost": "33.41",
"data_read_per_join": "18K"
},
"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": "5.85",
"eval_cost": "0.22",
"prefix_cost": "41.60",
"data_read_per_join": "981"
},
"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(329,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(457,`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.56",
"eval_cost": "0.22",
"prefix_cost": "42.38",
"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.56",
"eval_cost": "0.22",
"prefix_cost": "43.17",
"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.56",
"eval_cost": "0.22",
"prefix_cost": "43.95",
"data_read_per_join": "6K"
},
"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.56",
"eval_cost": "0.22",
"prefix_cost": "44.73",
"data_read_per_join": "981"
},
"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 |
| 6019 |
653 |
|
|
7748 |
S |
Battery |
|
|
Up to 30 hours with Active Noise Cancellation, 24 hours with immersive audio/spatial mode, Up to 45 hours when noise cancellation is turned off |
0 |
100 |
|
| 2700 |
653 |
|
|
3058 |
S |
Battery |
|
|
120mAh. Up to 6 hours of continuous playback on a full charge. |
0 |
100 |
|
| 3139 |
653 |
|
|
3555 |
S |
Battery |
|
|
680mAh Li-po battery, 60 hours of playback with full charge |
0 |
100 |
|
| 5157 |
713 |
|
|
7107 |
S |
Battery Life |
|
|
Up to 30 hours |
0 |
0 |
|
| 2700 |
657 |
|
|
3006 |
E |
Brand |
|
|
JBL |
0 |
0 |
|
| 5157 |
657 |
|
|
6600 |
E |
Brand |
|
|
Philips |
0 |
0 |
|
| 3139 |
657 |
|
|
2082 |
E |
Brand |
|
|
Anker |
0 |
0 |
|
| 6019 |
657 |
|
|
7688 |
E |
Brand |
|
|
Bose |
0 |
0 |
|
| 2700 |
654 |
|
|
3059 |
S |
Charging Type |
|
|
Micro USB |
0 |
120 |
|
| 6019 |
654 |
|
0.00 |
7749 |
S |
Charging Type |
|
|
Charges via USB-C, 2 hours until full charge, a quick 15 minute charge provides |
0 |
120 |
|
| 5157 |
654 |
|
|
5083 |
S |
Charging Type |
|
|
USB-C charging |
0 |
120 |
|
| 3139 |
654 |
|
|
3556 |
S |
Charging Type |
|
|
USB-C fast charging, fully charges in |
0 |
120 |
|
| 3139 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 5157 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 6019 |
656 |
|
|
5636 |
S |
Color |
|
|
Black with gold accents |
0 |
160 |
|
| 2700 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 6019 |
659 |
|
0.00 |
7750 |
S |
Connectivity |
|
|
Bluetooth 5.4, 3.5mm/2.5mm audio jack |
0 |
152 |
|
| 3139 |
659 |
|
|
3557 |
S |
Connectivity |
|
|
Bluetooth 5.0, 3.5mm AUX input, multipoint pairing |
0 |
152 |
|
| 5157 |
659 |
|
|
7098 |
S |
Connectivity |
|
|
Wireless (Bluetooth) |
0 |
152 |
|
| 2700 |
659 |
|
|
3060 |
S |
Connectivity |
|
|
Bluetooth 4.1 |
0 |
152 |
|
| 6019 |
671 |
|
|
2111 |
S |
Headphone Ear Cup Types |
|
|
Over-Ear |
0 |
0 |
|
| 5157 |
671 |
|
|
2111 |
S |
Headphone Ear Cup Types |
|
|
Over-Ear |
0 |
0 |
|
| 3139 |
671 |
|
|
2111 |
S |
Headphone Ear Cup Types |
|
|
Over-Ear |
0 |
0 |
|
| 2700 |
671 |
|
|
2112 |
S |
Headphone Ear Cup Types |
|
|
In-Ear |
0 |
0 |
|
| 3139 |
683 |
|
|
3534 |
S |
Input |
|
|
USB-C (charging), 3.5mm AUX input (audio in) |
0 |
310 |
|