Query time 0.00318
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "160.73"
},
"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": 240,
"rows_produced_per_join": 78,
"filtered": "32.52",
"index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (5303,5360,5311,5292,5341,5301,5318,5302,5342,5317,5324,5298,5305,5293,5322,5343,5310,5320,5299,5319,5294,5306,5325,5321,5362,5300,5345,5351,5295,5323,5347,5314,5304,5357,5296,5355,5361,5327,5340,5354,5315,5353,5308,5312,5326,5316,5344,5356,5359,5339,5350,5313,5349,5352,5358,5307,5348,5337,5338,5297)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "115.21",
"eval_cost": "7.80",
"prefix_cost": "123.01",
"data_read_per_join": "60K"
},
"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": 7,
"filtered": "9.53",
"cost_info": {
"read_cost": "19.51",
"eval_cost": "0.74",
"prefix_cost": "150.32",
"data_read_per_join": "3K"
},
"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(550,`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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.86",
"eval_cost": "0.74",
"prefix_cost": "152.93",
"data_read_per_join": "16K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.86",
"eval_cost": "0.74",
"prefix_cost": "155.53",
"data_read_per_join": "8K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.86",
"eval_cost": "0.74",
"prefix_cost": "158.13",
"data_read_per_join": "22K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.86",
"eval_cost": "0.74",
"prefix_cost": "160.73",
"data_read_per_join": "3K"
},
"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 |
| 5320 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5339 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5338 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5337 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5327 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5326 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5325 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5324 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5323 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5322 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5321 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5340 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5319 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5318 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5317 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5316 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5315 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5314 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5313 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5312 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5311 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5310 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5352 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5362 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5361 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5360 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5359 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5358 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5357 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5356 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5355 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5354 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5353 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5308 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5351 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5350 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5349 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5348 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5347 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5345 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5344 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5343 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5342 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5341 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5307 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5292 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5293 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5294 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5295 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5296 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5297 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5298 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5299 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5300 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5306 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5305 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5304 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5301 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5303 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5302 |
657 |
|
|
6951 |
E |
Brand |
|
|
Giffard |
0 |
0 |
|
| 5292 |
656 |
|
|
1766 |
S |
Color |
|
|
Golden |
0 |
160 |
|
| 5293 |
656 |
|
|
1766 |
S |
Color |
|
|
Golden |
0 |
160 |
|
| 5294 |
656 |
|
|
1787 |
S |
Color |
|
|
Amber Yellow |
0 |
160 |
|
| 5295 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5296 |
656 |
|
0.00 |
6959 |
S |
Color |
|
|
Clear to light golden |
0 |
160 |
|
| 5297 |
656 |
|
|
6869 |
S |
Color |
|
|
Dark Brown |
0 |
160 |
|
| 5298 |
656 |
|
|
1674 |
S |
Color |
|
|
Brown |
0 |
160 |
|
| 5300 |
656 |
|
|
6869 |
S |
Color |
|
|
Dark Brown |
0 |
160 |
|
| 5299 |
656 |
|
|
6965 |
S |
Color |
|
|
warm golden-brown |
0 |
160 |
|
| 5300 |
747 |
|
|
6966 |
S |
Syrup Flavor |
|
|
Cinnamon |
0 |
0 |
|
| 5292 |
747 |
|
|
6953 |
S |
Syrup Flavor |
|
|
vanilla |
0 |
0 |
|
| 5296 |
747 |
|
0.00 |
6958 |
S |
Syrup Flavor |
|
|
Clean, neutral cane sugar sweetness |
0 |
0 |
|
| 5298 |
747 |
|
|
6962 |
S |
Syrup Flavor |
|
|
Hazelnut |
0 |
0 |
|
| 5295 |
747 |
|
0.00 |
6957 |
S |
Syrup Flavor |
|
|
Chocolate |
0 |
0 |
|
| 5297 |
747 |
|
|
6960 |
S |
Syrup Flavor |
|
|
Chocolate Cookie Syrup |
0 |
0 |
|
| 5294 |
747 |
|
0.00 |
6955 |
S |
Syrup Flavor |
|
|
Salted Caramel |
0 |
0 |
|
| 5299 |
747 |
|
|
6964 |
S |
Syrup Flavor |
|
|
Toffee Nut |
0 |
0 |
|
| 5293 |
747 |
|
|
6954 |
S |
Syrup Flavor |
|
|
Caramel |
0 |
0 |
|
| 5294 |
756 |
|
1.00 |
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5292 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5299 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5293 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5300 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5298 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5295 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5296 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|
| 5297 |
756 |
|
|
6956 |
S |
Weight |
|
|
1L |
0 |
0 |
|