Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.99"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 32,
"rows_produced_per_join": 15,
"filtered": "50.00",
"index_condition": "((`cscart_db`.`v`.`lang_code` = 'en') and (`cscart_db`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "18.56",
"eval_cost": "1.60",
"prefix_cost": "21.76",
"data_read_per_join": "639"
},
"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": [
"cscart_db.v.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "83.18",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.33",
"prefix_cost": "27.36",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"feature_code",
"purpose",
"feature_style",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position"
],
"attached_condition": "((`cscart_db`.`f`.`status` = 'A') and ((`cscart_db`.`f`.`categories_path` = '') or (0 <> find_in_set(3073,`cscart_db`.`f`.`categories_path`))) and (if(`cscart_db`.`f`.`parent_id`,(/* select#2 */ select `cscart_db`.`df`.`status` from `cscart_db`.`cscart_product_features` `df` where (`cscart_db`.`df`.`feature_id` = `cscart_db`.`f`.`parent_id`)),'A') = 'A') and ((`cscart_db`.`v`.`variant_id` <> 0) or ((`cscart_db`.`f`.`feature_type` <> 'C') and (`cscart_db`.`v`.`value` <> '')) or (`cscart_db`.`f`.`feature_type` = 'C') or (`cscart_db`.`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": [
"cscart_db.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": "448"
},
"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": [
"cscart_db.v.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.33",
"eval_cost": "1.33",
"prefix_cost": "32.01",
"data_read_per_join": "30K"
},
"used_columns": [
"feature_id",
"description",
"prefix",
"suffix",
"lang_code",
"internal_name"
]
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"variant_feature_idx",
"idx_var_feat_pos"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"cscart_db.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.33",
"eval_cost": "1.33",
"prefix_cost": "36.67",
"data_read_per_join": "15K"
},
"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": [
"cscart_db.fv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.33",
"eval_cost": "1.33",
"prefix_cost": "41.33",
"data_read_per_join": "99K"
},
"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": [
"cscart_db.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.33",
"eval_cost": "1.33",
"prefix_cost": "45.99",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"feature_type",
"position"
],
"attached_condition": "<if>(is_not_null_compl(gf), (`cscart_db`.`gf`.`feature_type` = 'G'), true)"
}
}
]
}
}
}
Result
| feature_id |
value |
value_int |
variant_id |
feature_type |
internal_name |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
feature_style |
display_on_header |
display_on_catalog |
display_on_product |
feature_code |
purpose |
| 143 |
N |
|
0 |
C |
BBB |
BBB |
|
|
|
0 |
0 |
|
checkbox |
N |
N |
N |
|
find_products |
| 62 |
|
|
18873 |
E |
Brand |
Brand |
|
|
MOS Bakery |
0 |
1 |
|
brand |
Y |
N |
Y |
|
organize_catalog |
| 59 |
|
|
27799 |
M |
Certifications |
Certifications |
|
|
FSSAI |
0 |
90 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 19 |
|
|
18891 |
M |
Concern |
Concern |
|
|
Weight Management |
0 |
101 |
|
multiple_checkbox |
N |
N |
N |
|
find_products |
| 19 |
|
|
18890 |
M |
Concern |
Concern |
|
|
Diabetes |
0 |
101 |
|
multiple_checkbox |
N |
N |
N |
|
find_products |
| 19 |
|
|
18892 |
M |
Concern |
Concern |
|
|
General Wellbeing |
0 |
101 |
|
multiple_checkbox |
N |
N |
N |
|
find_products |
| 56 |
|
|
21581 |
M |
Diet |
Diet |
|
|
Organic |
0 |
103 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 56 |
|
|
21579 |
M |
Diet |
Diet |
|
|
Vegan |
0 |
103 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 56 |
|
|
34818 |
M |
Diet |
Diet |
|
|
Kid Friendly |
0 |
103 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 56 |
|
|
21578 |
M |
Diet |
Diet |
|
|
Dairy Free |
0 |
103 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 69 |
29-03-2024 |
|
0 |
T |
Expiry or Best Before Date |
Expiry or Best Before Date |
|
|
|
66 |
5 |
0 |
text |
N |
N |
Y |
|
describe_product |
| 76 |
|
|
57349 |
S |
Expiry or Best Before Month |
Expiry or Best Before Month |
|
|
29-09-2025 |
66 |
6 |
0 |
text |
N |
N |
Y |
|
find_products |
| 103 |
|
|
25171 |
S |
Flavor |
Flavor |
|
|
Wheatflour & Jaggery |
0 |
10 |
|
dropdown_labels |
N |
N |
N |
|
group_catalog_item |
| 93 |
|
|
21253 |
M |
Food Type |
Food Type |
|
|
Cookies
|
0 |
109 |
|
multiple_checkbox |
N |
N |
N |
|
find_products |
| 73 |
|
|
20891 |
M |
Good For |
For Concerns |
|
|
Weight Management |
0 |
106 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 73 |
|
|
20933 |
M |
Good For |
For Concerns |
|
|
Diabetes |
0 |
106 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 73 |
|
|
20932 |
M |
Good For |
For Concerns |
|
|
Heart Health |
0 |
106 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 73 |
|
|
20914 |
M |
Good For |
For Concerns |
|
|
Children's Health |
0 |
106 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 73 |
|
|
20886 |
M |
Good For |
For Concerns |
|
|
General Wellness |
0 |
106 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 65 |
|
|
21015 |
M |
Key Ingredients |
Key Ingredients |
|
|
Wheat Flour |
0 |
30 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 65 |
|
|
18881 |
M |
Key Ingredients |
Key Ingredients |
|
|
Raw Jaggery |
0 |
30 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 65 |
|
|
12135 |
M |
Key Ingredients |
Key Ingredients |
|
|
Kokum Butter |
0 |
30 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 60 |
|
|
10191 |
M |
kindcode |
kindcode |
|
|
Cruelty Free |
0 |
108 |
|
multiple_checkbox |
N |
N |
Y |
|
find_products |
| 67 |
|
200.00 |
12414 |
N |
Net Weight |
Net Weight |
|
gm |
200 |
0 |
1 |
|
dropdown |
N |
N |
Y |
|
group_catalog_item |
| 102 |
|
200.00 |
24793 |
N |
Size |
Size |
|
|
200 gm |
0 |
20 |
|
dropdown_labels |
N |
N |
N |
|
group_catalog_item |