Query time 0.00222
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "50.19"
},
"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": 81,
"rows_produced_per_join": 26,
"filtered": "32.51",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (10954,11057,11010,11012))",
"cost_info": {
"read_cost": "34.83",
"eval_cost": "2.63",
"prefix_cost": "37.46",
"data_read_per_join": "20K"
},
"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.58",
"eval_cost": "0.25",
"prefix_cost": "46.68",
"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(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(557,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(560,`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(555,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(562,`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.63",
"eval_cost": "0.25",
"prefix_cost": "47.56",
"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.63",
"eval_cost": "0.25",
"prefix_cost": "48.43",
"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.63",
"eval_cost": "0.25",
"prefix_cost": "49.31",
"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.63",
"eval_cost": "0.25",
"prefix_cost": "50.19",
"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 |
| 10954 |
754 |
|
|
6845 |
S |
Blend Type |
|
|
50% Arabica, 50% Robusta |
0 |
0 |
|
| 11012 |
754 |
|
|
6803 |
S |
Blend Type |
|
|
70% Arabica, 30% Robusta |
0 |
0 |
|
| 11057 |
754 |
|
|
6812 |
S |
Blend Type |
|
|
100% Arabica |
0 |
0 |
|
| 11010 |
754 |
|
|
6845 |
S |
Blend Type |
|
|
50% Arabica, 50% Robusta |
0 |
0 |
|
| 10954 |
752 |
|
|
6838 |
S |
Coffee Type |
|
|
Ground Coffee |
0 |
0 |
|
| 11010 |
752 |
|
|
6838 |
S |
Coffee Type |
|
|
Ground Coffee |
0 |
0 |
|
| 11057 |
752 |
|
|
9541 |
S |
Coffee Type |
|
|
Coffee Beans |
0 |
0 |
|
| 10954 |
755 |
|
|
9494 |
S |
Flavor Notes |
|
|
Mild, Creamy, Woody / Spicy |
0 |
0 |
|
| 11057 |
755 |
|
|
9540 |
S |
Flavor Notes |
|
|
Sweet, enveloping body with light acidity and hints of caramel, and an aromatic aftertaste |
0 |
0 |
|
| 11010 |
755 |
|
|
9518 |
S |
Flavor Notes |
|
|
Balanced, Aromatic, Chocolate, Caramelized |
0 |
0 |
|
| 11012 |
755 |
|
|
9538 |
S |
Flavor Notes |
|
|
Sweet, enveloping body with the flavour of fresh fruit and the aroma of flowers, finished with nutty, slightly spicy notes |
0 |
0 |
|
| 10954 |
740 |
|
|
6810 |
S |
Intensity |
|
|
8/10 |
0 |
0 |
|
| 11057 |
740 |
|
|
6836 |
S |
Intensity |
|
|
4/10 |
0 |
0 |
|
| 11010 |
740 |
|
|
9519 |
S |
Intensity |
|
|
5/10 |
0 |
0 |
|
| 11012 |
740 |
|
|
6836 |
S |
Intensity |
|
|
4/10 |
0 |
0 |
|
| 11057 |
753 |
|
|
7212 |
S |
Roast Level |
|
|
Light roast |
0 |
0 |
|
| 10954 |
753 |
|
|
6826 |
S |
Roast Level |
|
|
Dark |
0 |
0 |
|
| 11012 |
753 |
|
|
7207 |
S |
Roast Level |
|
|
Medium roast |
0 |
0 |
|
| 11010 |
753 |
|
|
6811 |
S |
Roast Level |
|
|
Medium |
0 |
0 |
|
| 11012 |
756 |
|
|
6808 |
S |
Weight |
|
|
1 kg |
0 |
0 |
|
| 11010 |
756 |
|
|
6808 |
S |
Weight |
|
|
1 kg |
0 |
0 |
|
| 11057 |
756 |
|
|
6808 |
S |
Weight |
|
|
1 kg |
0 |
0 |
|
| 10954 |
756 |
|
|
6839 |
S |
Weight |
|
|
250 g |
0 |
0 |
|
| 11012 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|
| 11057 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|
| 11010 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|
| 10954 |
657 |
|
|
6979 |
E |
ماركة |
|
|
De'Longhi |
0 |
0 |
|