Query time 0.00199
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "59.65"
},
"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": 97,
"rows_produced_per_join": 31,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (1134,851,1126)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "41.26",
"eval_cost": "3.15",
"prefix_cost": "44.41",
"data_read_per_join": "24K"
},
"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": 3,
"filtered": "9.53",
"cost_info": {
"read_cost": "7.89",
"eval_cost": "0.30",
"prefix_cost": "55.45",
"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(322,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(323,`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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.30",
"prefix_cost": "56.50",
"data_read_per_join": "6K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.30",
"prefix_cost": "57.55",
"data_read_per_join": "3K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.30",
"prefix_cost": "58.60",
"data_read_per_join": "9K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.30",
"prefix_cost": "59.66",
"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 |
| 1134 |
653 |
|
|
1697 |
S |
Battery |
|
|
308mAh |
0 |
100 |
|
| 851 |
653 |
|
|
1712 |
S |
Battery |
|
|
502mAh |
0 |
100 |
|
| 1126 |
653 |
|
|
1691 |
S |
Battery |
|
|
296mAh |
0 |
100 |
|
| 1134 |
657 |
|
|
1665 |
E |
Brand |
|
|
Apple |
0 |
0 |
|
| 1126 |
657 |
|
|
1665 |
E |
Brand |
|
|
Apple |
0 |
0 |
|
| 851 |
657 |
|
|
1665 |
E |
Brand |
|
|
Apple |
0 |
0 |
|
| 1134 |
654 |
|
|
1698 |
S |
Charging Type |
|
|
MagSafe |
0 |
120 |
|
| 851 |
654 |
|
|
1698 |
S |
Charging Type |
|
|
MagSafe |
0 |
120 |
|
| 1126 |
654 |
|
|
1698 |
S |
Charging Type |
|
|
MagSafe |
0 |
120 |
|
| 1134 |
656 |
|
|
1634 |
S |
Color |
|
|
Jet Black Aluminum |
0 |
160 |
|
| 851 |
656 |
|
|
1553 |
S |
Color |
|
|
Natural Titanium |
0 |
160 |
|
| 1126 |
656 |
|
|
1631 |
S |
Color |
|
|
Midnight Aluminum |
0 |
160 |
|
| 1126 |
649 |
|
|
1612 |
S |
Display |
|
|
40mm |
0 |
20 |
|
| 1134 |
649 |
|
|
1614 |
S |
Display |
|
|
42mm |
0 |
20 |
|
| 851 |
649 |
|
|
1615 |
S |
Display |
|
|
49mm |
0 |
20 |
|
| 851 |
640 |
|
|
1693 |
S |
Operating System |
|
|
watchOS 10 |
0 |
10 |
|
| 1126 |
640 |
|
|
1688 |
S |
Operating System |
|
|
watchOS 9 |
0 |
10 |
|
| 1134 |
640 |
|
|
1693 |
S |
Operating System |
|
|
watchOS 10 |
0 |
10 |
|
| 1126 |
651 |
|
|
1690 |
S |
Processor |
|
|
S8 chip |
0 |
60 |
|
| 1134 |
651 |
|
|
1695 |
S |
Processor |
|
|
S10 chip |
0 |
60 |
|
| 851 |
651 |
|
|
1618 |
S |
Processor |
|
|
S9 SiP |
0 |
60 |
|
| 1126 |
643 |
|
|
1619 |
S |
Ram |
|
|
1GB |
0 |
70 |
|
| 1134 |
643 |
|
|
1696 |
S |
Ram |
|
|
1.5GB |
0 |
70 |
|
| 851 |
643 |
|
|
1711 |
S |
Ram |
|
|
2GB |
0 |
70 |
|
| 1126 |
650 |
|
|
1539 |
S |
Refresh Rate |
|
|
60Hz |
0 |
40 |
|
| 851 |
650 |
|
|
1539 |
S |
Refresh Rate |
|
|
60Hz |
0 |
40 |
|
| 1134 |
650 |
|
|
1539 |
S |
Refresh Rate |
|
|
60Hz |
0 |
40 |
|
| 851 |
642 |
|
|
1710 |
S |
Resolution |
|
|
410-by-502-pixel |
0 |
50 |
|
| 1134 |
642 |
|
|
1694 |
S |
Resolution |
|
|
416-by-496-pixel |
0 |
50 |
|
| 1126 |
642 |
|
|
1689 |
S |
Resolution |
|
|
368-by-448-pixel |
0 |
50 |
|
| 851 |
646 |
|
|
1699 |
S |
Sensor |
|
|
Electrical heart sensor |
0 |
130 |
|
| 1126 |
646 |
|
|
1699 |
S |
Sensor |
|
|
Electrical heart sensor |
0 |
130 |
|
| 1126 |
648 |
|
|
1686 |
S |
Storage |
|
|
32GB |
0 |
170 |
|
| 1134 |
648 |
|
|
1687 |
S |
Storage |
|
|
64GB |
0 |
170 |
|
| 851 |
648 |
|
|
1687 |
S |
Storage |
|
|
64GB |
0 |
170 |
|