Query time 0.00231
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.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": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 75,
"rows_produced_per_join": 24,
"filtered": "32.51",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (11285,11286,11290))",
"cost_info": {
"read_cost": "32.07",
"eval_cost": "2.44",
"prefix_cost": "34.51",
"data_read_per_join": "18K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'ar') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))"
}
},
{
"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.10",
"eval_cost": "0.23",
"prefix_cost": "43.05",
"data_read_per_join": "1022"
},
"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(250,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(553,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(554,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(372,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(552,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(556,`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.58",
"eval_cost": "0.23",
"prefix_cost": "43.86",
"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.58",
"eval_cost": "0.23",
"prefix_cost": "44.67",
"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.58",
"eval_cost": "0.23",
"prefix_cost": "45.48",
"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.58",
"eval_cost": "0.23",
"prefix_cost": "46.30",
"data_read_per_join": "1022"
},
"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 |
| 11290 |
760 |
|
|
9786 |
S |
Bean Hopper Capacity |
|
|
400g |
0 |
0 |
|
| 11285 |
760 |
|
|
9671 |
S |
Bean Hopper Capacity |
|
|
500 grams |
0 |
0 |
|
| 11286 |
760 |
|
|
9679 |
S |
Bean Hopper Capacity |
|
|
300 grams |
0 |
0 |
|
| 11290 |
732 |
|
|
9685 |
S |
Coffee & Drink Options |
|
|
Espresso, Coffee, Long, Cappuccino, Latte Macchiato, Flat White, Espresso Macchiato, Hot Milk, Milk Foam, Hot Water |
0 |
0 |
|
| 11285 |
732 |
|
|
9672 |
S |
Coffee & Drink Options |
|
|
Approx. 21 drinks (espresso, lungo, cappuccino, latte macchiato, hot water, tea, iced, etc.) |
0 |
0 |
|
| 11286 |
732 |
|
|
9680 |
S |
Coffee & Drink Options |
|
|
Approx. 28 drinks incl. espresso, cappuccino, latte, cold brew, flat white, americano, and more |
0 |
0 |
|
| 11290 |
757 |
|
|
9686 |
S |
Grinder Type & Settings |
|
|
Integrated steel burr grinder with 13 levels |
0 |
0 |
|
| 11285 |
757 |
|
|
9673 |
S |
Grinder Type & Settings |
|
|
Integrated conical burr with Bean Adapt tech |
0 |
0 |
|
| 11286 |
757 |
|
|
9681 |
S |
Grinder Type & Settings |
|
|
Integrated adjustable grinder |
0 |
0 |
|
| 11290 |
758 |
|
|
9687 |
S |
Milk Frothing |
|
|
Automatic LatteCrema System + manual steam device |
0 |
0 |
|
| 11286 |
758 |
|
|
9678 |
S |
Milk Frothing |
|
|
Automatic LatteCrema Hot & Cool system with milk tank |
0 |
0 |
|
| 11285 |
758 |
|
|
9674 |
S |
Milk Frothing |
|
|
Automatic LatteCrema System |
0 |
0 |
|
| 11286 |
759 |
|
|
7286 |
S |
Pump Pressure |
|
|
19 pump pressure |
0 |
0 |
|
| 11290 |
759 |
|
|
7028 |
S |
Pump Pressure |
|
|
15 bar pressure |
0 |
0 |
|
| 11285 |
759 |
|
|
7286 |
S |
Pump Pressure |
|
|
19 pump pressure |
0 |
0 |
|
| 11286 |
733 |
|
|
7183 |
S |
Water Tank Capacity |
|
|
1.8 L |
0 |
0 |
|
| 11290 |
733 |
|
2.00 |
9688 |
S |
Water Tank Capacity |
|
|
2 L |
0 |
0 |
|
| 11285 |
733 |
|
|
8566 |
S |
Water Tank Capacity |
|
|
2.2 L |
0 |
0 |
|
| 11286 |
656 |
|
|
7191 |
S |
لون |
|
|
Black and silver |
0 |
160 |
|
| 11290 |
656 |
|
0.00 |
9689 |
S |
لون |
|
|
White with metal accents |
0 |
160 |
|
| 11285 |
656 |
|
0.00 |
9675 |
S |
لون |
|
|
Black and Metal |
0 |
160 |
|
| 11286 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|
| 11290 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|
| 11285 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|