Query time 0.00436
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "196.27"
},
"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": 315,
"rows_produced_per_join": 102,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (5969,5205,5266,5024,5262,5282,5275,5264,5283,5268,5274,5273,5291,5182,5267,5279,5269,5280,5017,5286)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "136.52",
"eval_cost": "10.24",
"prefix_cost": "146.76",
"data_read_per_join": "79K"
},
"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": 9,
"filtered": "9.53",
"cost_info": {
"read_cost": "25.61",
"eval_cost": "0.98",
"prefix_cost": "182.61",
"data_read_per_join": "4K"
},
"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(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(553,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(555,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(557,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(561,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(563,`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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.44",
"eval_cost": "0.98",
"prefix_cost": "186.02",
"data_read_per_join": "22K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.44",
"eval_cost": "0.98",
"prefix_cost": "189.44",
"data_read_per_join": "11K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.44",
"eval_cost": "0.98",
"prefix_cost": "192.85",
"data_read_per_join": "29K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.44",
"eval_cost": "0.98",
"prefix_cost": "196.27",
"data_read_per_join": "4K"
},
"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 |
| 5017 |
741 |
|
|
6376 |
S |
Aromatic Notes |
|
|
Caramel |
0 |
0 |
|
| 5024 |
741 |
|
|
6356 |
S |
Aromatic Notes |
|
|
Intense |
0 |
0 |
|
| 5182 |
741 |
|
|
6847 |
S |
Aromatic Notes |
|
|
Chocolate, Caramel, Nutty |
0 |
0 |
|
| 5262 |
741 |
|
|
6864 |
S |
Aromatic Notes |
|
|
Dark Chocolate, Roasted Nuts, Spices |
0 |
0 |
|
| 5264 |
741 |
|
|
6873 |
S |
Aromatic Notes |
|
|
Caramel, Roasted Chestnuts, Dark Red Fruits |
0 |
0 |
|
| 5266 |
741 |
|
|
6881 |
S |
Aromatic Notes |
|
|
Red Berries, Pink Berry Pepper |
0 |
0 |
|
| 5267 |
741 |
|
|
6884 |
S |
Aromatic Notes |
|
|
Fruity, Slightly Spicy |
0 |
0 |
|
| 5268 |
741 |
|
|
6888 |
S |
Aromatic Notes |
|
|
Fruity, Smooth |
0 |
0 |
|
| 5269 |
741 |
|
|
6890 |
S |
Aromatic Notes |
|
|
Bitter Chocolate, Roasted Cereal |
0 |
0 |
|
| 5273 |
741 |
|
|
6902 |
S |
Aromatic Notes |
|
|
Velvety, Smooth |
0 |
0 |
|
| 5274 |
741 |
|
|
6905 |
S |
Aromatic Notes |
|
|
Toasted Cereal, Caramel |
0 |
0 |
|
| 5275 |
741 |
|
|
6908 |
S |
Aromatic Notes |
|
|
Roasted Almonds, Toasted Cereal |
0 |
0 |
|
| 5279 |
741 |
|
|
6918 |
S |
Aromatic Notes |
|
|
Chocolate, Vanilla |
0 |
0 |
|
| 5280 |
741 |
|
|
6920 |
S |
Aromatic Notes |
|
|
Cocoa, Milk, Sweet Foam |
0 |
0 |
|
| 5282 |
741 |
|
|
6926 |
S |
Aromatic Notes |
|
|
Green Tea, Mint, Light Sweetness |
0 |
0 |
|
| 5283 |
741 |
|
|
6929 |
S |
Aromatic Notes |
|
|
Rich Espresso, Steamed Milk, Silky Foam |
0 |
0 |
|
| 5286 |
741 |
|
|
6937 |
S |
Aromatic Notes |
|
|
Madagascar Vanilla, Creamy Milk, Smooth Coffee |
0 |
0 |
|
| 5291 |
741 |
|
|
6949 |
S |
Aromatic Notes |
|
|
Cocoa, Soft Spice, Sweet Vibrancy |
0 |
0 |
|
| 5969 |
741 |
|
|
6362 |
S |
Aromatic Notes |
|
|
Balanced |
0 |
0 |
|
| 5017 |
742 |
|
|
6377 |
S |
Aromatic Profile |
|
|
Caramel flavoured |
0 |
0 |
|
| 5024 |
742 |
|
|
6395 |
S |
Aromatic Profile |
|
|
Rich & Full-bodied |
0 |
0 |
|
| 5182 |
742 |
|
|
6816 |
S |
Aromatic Profile |
|
|
Balanced & Smooth |
0 |
0 |
|
| 5262 |
742 |
|
|
6865 |
S |
Aromatic Profile |
|
|
Intense, Full-bodied, Strong Espresso |
0 |
0 |
|
| 5264 |
742 |
|
|
6874 |
S |
Aromatic Profile |
|
|
Bold, Syrupy, Velvety Crema |
0 |
0 |
|
| 5266 |
742 |
|
|
6882 |
S |
Aromatic Profile |
|
|
Spicy, Fruity, Full-bodied |
0 |
0 |
|
| 5267 |
742 |
|
|
6885 |
S |
Aromatic Profile |
|
|
Balanced, Aromatic |
0 |
0 |
|
| 5268 |
742 |
|
|
6885 |
S |
Aromatic Profile |
|
|
Balanced, Aromatic |
0 |
0 |
|
| 5269 |
742 |
|
|
6891 |
S |
Aromatic Profile |
|
|
Bold, Full-Bodied |
0 |
0 |
|
| 5273 |
742 |
|
|
6903 |
S |
Aromatic Profile |
|
|
Balanced, Indulgent |
0 |
0 |
|
| 5274 |
742 |
|
|
6906 |
S |
Aromatic Profile |
|
|
Balanced, Round |
0 |
0 |
|
| 5275 |
742 |
|
|
6909 |
S |
Aromatic Profile |
|
|
Bold, Velvety |
0 |
0 |
|
| 5279 |
742 |
|
|
6919 |
S |
Aromatic Profile |
|
|
Intense Chocolate Drink, Dense Froth |
0 |
0 |
|
| 5280 |
742 |
|
|
6921 |
S |
Aromatic Profile |
|
|
Rich, Creamy, Indulgent |
0 |
0 |
|
| 5282 |
742 |
|
|
6927 |
S |
Aromatic Profile |
|
|
Refreshing, Herbal, Mildly Sweet |
0 |
0 |
|
| 5283 |
742 |
|
|
6930 |
S |
Aromatic Profile |
|
|
Creamy, Balanced, Indulgent |
0 |
0 |
|
| 5286 |
742 |
|
|
6938 |
S |
Aromatic Profile |
|
|
Sweet, Velvety, Layered Macchiato |
0 |
0 |
|
| 5291 |
742 |
|
|
6950 |
S |
Aromatic Profile |
|
|
Light, Mellow, Approachable |
0 |
0 |
|
| 5969 |
742 |
|
|
7673 |
S |
Aromatic Profile |
|
|
Sweet & Light |
0 |
0 |
|
| 5017 |
657 |
|
|
6275 |
E |
Brand |
|
|
Nespresso |
0 |
0 |
|
| 5024 |
657 |
|
|
6275 |
E |
Brand |
|
|
Nespresso |
0 |
0 |
|
| 5182 |
657 |
|
|
6802 |
E |
Brand |
|
|
Bristot |
0 |
0 |
|
| 5262 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5264 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5266 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5267 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5268 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5269 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5273 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5274 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5275 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5279 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5280 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5282 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5283 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5286 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5291 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5969 |
657 |
|
|
6275 |
E |
Brand |
|
|
Nespresso |
0 |
0 |
|
| 5017 |
656 |
|
|
1707 |
S |
Color |
|
|
Orange |
0 |
160 |
|
| 5024 |
656 |
|
|
1777 |
S |
Color |
|
|
Min Green |
0 |
160 |
|
| 5182 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5262 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5264 |
656 |
|
|
2077 |
S |
Color |
|
|
Grey |
0 |
160 |
|
| 5266 |
656 |
|
|
1560 |
S |
Color |
|
|
Black |
0 |
160 |
|
| 5267 |
656 |
|
|
1707 |
S |
Color |
|
|
Orange |
0 |
160 |
|
| 5268 |
656 |
|
|
1707 |
S |
Color |
|
|
Orange |
0 |
160 |
|
| 5269 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5273 |
656 |
|
|
2308 |
S |
Color |
|
|
Turquoise |
0 |
160 |
|
| 5274 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5275 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5279 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5280 |
656 |
|
|
1595 |
S |
Color |
|
|
Yellow |
0 |
160 |
|
| 5282 |
656 |
|
|
1596 |
S |
Color |
|
|
Green |
0 |
160 |
|
| 5283 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5286 |
656 |
|
|
1595 |
S |
Color |
|
|
Yellow |
0 |
160 |
|
| 5291 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5969 |
656 |
|
|
1766 |
S |
Color |
|
|
Golden |
0 |
160 |
|
| 5017 |
743 |
|
|
6378 |
S |
Cup Size |
|
|
Espresso (40 ml), Lungo (110 ml), milk-recipe |
0 |
0 |
|
| 5024 |
743 |
|
|
6381 |
S |
Cup Size |
|
|
Lungo (110 ml) |
0 |
0 |
|
| 5182 |
743 |
|
|
6393 |
S |
Cup Size |
|
|
Espresso (40 ml) |
0 |
0 |
|
| 5262 |
743 |
|
|
6866 |
S |
Cup Size |
|
|
Espresso (30 ml) / Ristretto (25 ml) |
0 |
0 |
|
| 5264 |
743 |
|
|
6875 |
S |
Cup Size |
|
|
Ristretto (25 ml) |
0 |
0 |
|
| 5266 |
743 |
|
|
6879 |
S |
Cup Size |
|
|
Espresso (30 ml) |
0 |
0 |
|
| 5267 |
743 |
|
|
6886 |
S |
Cup Size |
|
|
Espresso (30 ml) / Ristretto (25 ml) / Lungo (120 ml) |
0 |
0 |
|
| 5268 |
743 |
|
|
6889 |
S |
Cup Size |
|
|
Lungo (120 ml) |
0 |
0 |
|
| 5269 |
743 |
|
|
6892 |
S |
Cup Size |
|
|
Lungo (180 ml) |
0 |
0 |
|
| 5273 |
743 |
|
|
6904 |
S |
Cup Size |
|
|
Flat White (180 ml) |
0 |
0 |
|
| 5274 |
743 |
|
|
6907 |
S |
Cup Size |
|
|
Medium (180 ml) |
0 |
0 |
|
| 5275 |
743 |
|
|
6910 |
S |
Cup Size |
|
|
Large (200 ml) |
0 |
0 |
|
| 5279 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5280 |
743 |
|
|
6907 |
S |
Cup Size |
|
|
Medium (180 ml) |
0 |
0 |
|
| 5282 |
743 |
|
|
6928 |
S |
Cup Size |
|
|
Medium (150 ml) |
0 |
0 |
|
| 5283 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5286 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5291 |
743 |
|
|
6879 |
S |
Cup Size |
|
|
Espresso (30 ml) |
0 |
0 |
|
| 5969 |
743 |
|
|
7674 |
S |
Cup Size |
|
|
Ristretto (25 ml), Espresso (40 ml), Lungo (110 ml |
0 |
0 |
|
| 5024 |
740 |
|
|
6358 |
S |
Intensity |
|
|
8/13 |
0 |
0 |
|
| 5182 |
740 |
|
|
6810 |
S |
Intensity |
|
|
8/10 |
0 |
0 |
|
| 5262 |
740 |
|
|
6870 |
S |
Intensity |
|
|
13/13 |
0 |
0 |
|
| 5264 |
740 |
|
|
6876 |
S |
Intensity |
|
|
9/11 |
0 |
0 |
|
| 5266 |
740 |
|
|
6883 |
S |
Intensity |
|
|
7/11 |
0 |
0 |
|
| 5267 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5268 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5269 |
740 |
|
|
6876 |
S |
Intensity |
|
|
9/11 |
0 |
0 |
|
| 5273 |
740 |
|
|
6896 |
S |
Intensity |
|
|
5/11 |
0 |
0 |
|
| 5274 |
740 |
|
|
6883 |
S |
Intensity |
|
|
7/11 |
0 |
0 |
|
| 5275 |
740 |
|
|
6876 |
S |
Intensity |
|
|
9/11 |
0 |
0 |
|
| 5279 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5280 |
740 |
|
|
6922 |
S |
Intensity |
|
|
3/11 |
0 |
0 |
|
| 5282 |
740 |
|
|
6896 |
S |
Intensity |
|
|
5/11 |
0 |
0 |
|
| 5283 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5286 |
740 |
|
|
6883 |
S |
Intensity |
|
|
7/11 |
0 |
0 |
|
| 5291 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5969 |
740 |
|
|
7675 |
S |
Intensity |
|
|
4/13 |
0 |
0 |
|