Query time 0.00320
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "115.34"
},
"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": 185,
"rows_produced_per_join": 60,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (5290,5271,5277,5287,5281,5270,5278,5207,5008,5272,5276,5285)) 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.24",
"eval_cost": "6.02",
"prefix_cost": "86.26",
"data_read_per_join": "46K"
},
"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": "15.04",
"eval_cost": "0.57",
"prefix_cost": "107.31",
"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(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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.43",
"eval_cost": "0.57",
"prefix_cost": "109.32",
"data_read_per_join": "13K"
},
"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.43",
"eval_cost": "0.57",
"prefix_cost": "111.33",
"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.43",
"eval_cost": "0.57",
"prefix_cost": "113.33",
"data_read_per_join": "17K"
},
"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.43",
"eval_cost": "0.57",
"prefix_cost": "115.34",
"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 |
| 5290 |
741 |
|
|
6947 |
S |
Aromatic Notes |
|
|
Nutty, Floral |
0 |
0 |
|
| 5008 |
741 |
|
|
6356 |
S |
Aromatic Notes |
|
|
Intense |
0 |
0 |
|
| 5276 |
741 |
|
|
6911 |
S |
Aromatic Notes |
|
|
Toasted Almonds, Roasted Cereal |
0 |
0 |
|
| 5277 |
741 |
|
|
6913 |
S |
Aromatic Notes |
|
|
Hot Milk, Caramel Flavour, Smooth Coffee |
0 |
0 |
|
| 5287 |
741 |
|
|
6939 |
S |
Aromatic Notes |
|
|
Milk, Smooth Coffee, Mild Sweetness |
0 |
0 |
|
| 5270 |
741 |
|
|
6893 |
S |
Aromatic Notes |
|
|
Fruity, Mild |
0 |
0 |
|
| 5272 |
741 |
|
|
6899 |
S |
Aromatic Notes |
|
|
Roasted Almonds, Pecans |
0 |
0 |
|
| 5278 |
741 |
|
|
6916 |
S |
Aromatic Notes |
|
|
Rich, Bold Espresso, Milk Froth |
0 |
0 |
|
| 5285 |
741 |
|
|
6933 |
S |
Aromatic Notes |
|
|
Caramel, Cream, Mild Coffee |
0 |
0 |
|
| 5281 |
741 |
|
|
6923 |
S |
Aromatic Notes |
|
|
Milk, Cocoa, Mild Coffee |
0 |
0 |
|
| 5271 |
741 |
|
|
6897 |
S |
Aromatic Notes |
|
|
Black Cherry, Roasted |
0 |
0 |
|
| 5281 |
742 |
|
|
6924 |
S |
Aromatic Profile |
|
|
Creamy, Indulgent, Café-Style Mocha |
0 |
0 |
|
| 5276 |
742 |
|
|
6912 |
S |
Aromatic Profile |
|
|
Balanced, Creamy |
0 |
0 |
|
| 5277 |
742 |
|
|
6914 |
S |
Aromatic Profile |
|
|
Milkier than Cappuccino, indulgent and layered |
0 |
0 |
|
| 5272 |
742 |
|
|
6900 |
S |
Aromatic Profile |
|
|
Balanced, Nutty |
0 |
0 |
|
| 5278 |
742 |
|
|
6917 |
S |
Aromatic Profile |
|
|
Creamy, Balanced, Frothy Coffee Drink |
0 |
0 |
|
| 5271 |
742 |
|
|
6891 |
S |
Aromatic Profile |
|
|
Bold, Full-Bodied |
0 |
0 |
|
| 5285 |
742 |
|
|
6934 |
S |
Aromatic Profile |
|
|
Sweet, Layered, Indulgent |
0 |
0 |
|
| 5270 |
742 |
|
|
6894 |
S |
Aromatic Profile |
|
|
Balanced, Smooth |
0 |
0 |
|
| 5287 |
742 |
|
|
6940 |
S |
Aromatic Profile |
|
|
Creamy, Balanced Latte Drink |
0 |
0 |
|
| 5008 |
742 |
|
|
6364 |
S |
Aromatic Profile |
|
|
Intense & Creamy |
0 |
0 |
|
| 5290 |
742 |
|
|
6948 |
S |
Aromatic Profile |
|
|
Balanced, Juicy, Smooth |
0 |
0 |
|
| 5008 |
657 |
|
|
6275 |
E |
Brand |
|
|
Nespresso |
0 |
0 |
|
| 5281 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5285 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5287 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5278 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5290 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5277 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5271 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5276 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5270 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5272 |
657 |
|
|
6868 |
E |
Brand |
|
|
Nescafé |
0 |
0 |
|
| 5270 |
656 |
|
|
1595 |
S |
Color |
|
|
Yellow |
0 |
160 |
|
| 5285 |
656 |
|
|
2758 |
S |
Color |
|
|
Gold |
0 |
160 |
|
| 5271 |
656 |
|
|
1707 |
S |
Color |
|
|
Orange |
0 |
160 |
|
| 5287 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5272 |
656 |
|
|
3421 |
S |
Color |
|
|
Beige |
0 |
160 |
|
| 5281 |
656 |
|
|
1609 |
S |
Color |
|
|
Purple |
0 |
160 |
|
| 5290 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5278 |
656 |
|
|
1596 |
S |
Color |
|
|
Green |
0 |
160 |
|
| 5276 |
656 |
|
|
1707 |
S |
Color |
|
|
Orange |
0 |
160 |
|
| 5008 |
656 |
|
|
1788 |
S |
Color |
|
|
Cobalt Purple |
0 |
160 |
|
| 5277 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5290 |
743 |
|
|
6879 |
S |
Cup Size |
|
|
Espresso (30 ml) |
0 |
0 |
|
| 5287 |
743 |
|
|
6910 |
S |
Cup Size |
|
|
Large (200 ml) |
0 |
0 |
|
| 5008 |
743 |
|
|
6348 |
S |
Cup Size |
|
|
Ristretto (25 ml) and Espresso (40 ml) |
0 |
0 |
|
| 5285 |
743 |
|
|
6910 |
S |
Cup Size |
|
|
Large (200 ml) |
0 |
0 |
|
| 5270 |
743 |
|
|
6895 |
S |
Cup Size |
|
|
Grande (180–230 ml) |
0 |
0 |
|
| 5276 |
743 |
|
|
6910 |
S |
Cup Size |
|
|
Large (200 ml) |
0 |
0 |
|
| 5281 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5271 |
743 |
|
|
6895 |
S |
Cup Size |
|
|
Grande (180–230 ml) |
0 |
0 |
|
| 5278 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5272 |
743 |
|
|
6901 |
S |
Cup Size |
|
|
Espresso (30 ml) / Cortado (80 ml) |
0 |
0 |
|
| 5277 |
743 |
|
|
6915 |
S |
Cup Size |
|
|
Large (220 ml) |
0 |
0 |
|
| 5285 |
740 |
|
|
6896 |
S |
Intensity |
|
|
5/11 |
0 |
0 |
|
| 5271 |
740 |
|
|
6898 |
S |
Intensity |
|
|
8/11 |
0 |
0 |
|
| 5281 |
740 |
|
|
6925 |
S |
Intensity |
|
|
11/11 |
0 |
0 |
|
| 5270 |
740 |
|
|
6896 |
S |
Intensity |
|
|
5/11 |
0 |
0 |
|
| 5287 |
740 |
|
|
6941 |
S |
Intensity |
|
|
4/11 |
0 |
0 |
|
| 5272 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|
| 5278 |
740 |
|
|
6883 |
S |
Intensity |
|
|
7/11 |
0 |
0 |
|
| 5290 |
740 |
|
|
6883 |
S |
Intensity |
|
|
7/11 |
0 |
0 |
|
| 5008 |
740 |
|
|
6365 |
S |
Intensity |
|
|
9/13 |
0 |
0 |
|
| 5277 |
740 |
|
|
6896 |
S |
Intensity |
|
|
5/11 |
0 |
0 |
|
| 5276 |
740 |
|
|
6887 |
S |
Intensity |
|
|
6/11 |
0 |
0 |
|