Query time 0.00383
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "129.94"
},
"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": 200,
"rows_produced_per_join": 65,
"filtered": "32.52",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (8145,8202,8322,8306,8235,8247,8250,8238,8338,8259,8149,8200,8324,8323,8325,8326,8327,8328,8337,8150,8142,8151,8140,8127,8132,8167,7885,8130,9313,8139,8143,8152,8411,9291))",
"cost_info": {
"read_cost": "92.01",
"eval_cost": "6.50",
"prefix_cost": "98.51",
"data_read_per_join": "50K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en') 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": 6,
"filtered": "9.53",
"cost_info": {
"read_cost": "16.26",
"eval_cost": "0.62",
"prefix_cost": "121.27",
"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(577,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(629,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(631,`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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.55",
"eval_cost": "0.62",
"prefix_cost": "123.44",
"data_read_per_join": "14K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.55",
"eval_cost": "0.62",
"prefix_cost": "125.61",
"data_read_per_join": "7K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.55",
"eval_cost": "0.62",
"prefix_cost": "127.78",
"data_read_per_join": "18K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.55",
"eval_cost": "0.62",
"prefix_cost": "129.94",
"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 |
| 8200 |
657 |
|
|
8543 |
E |
Brand |
|
|
Glamglow |
0 |
0 |
|
| 8324 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8150 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8328 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8151 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8259 |
657 |
|
|
8438 |
E |
Brand |
|
|
Lierac |
0 |
0 |
|
| 8152 |
657 |
|
|
8384 |
E |
Brand |
|
|
Cosrx |
0 |
0 |
|
| 8327 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8167 |
657 |
|
|
8621 |
E |
Brand |
|
|
Eucerin |
0 |
0 |
|
| 8149 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8326 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8202 |
657 |
|
|
8543 |
E |
Brand |
|
|
Glamglow |
0 |
0 |
|
| 8235 |
657 |
|
|
8792 |
E |
Brand |
|
|
Im From |
0 |
0 |
|
| 8250 |
657 |
|
|
8438 |
E |
Brand |
|
|
Lierac |
0 |
0 |
|
| 7885 |
657 |
|
|
8382 |
E |
Brand |
|
|
Neutrogena |
0 |
0 |
|
| 8238 |
657 |
|
|
8438 |
E |
Brand |
|
|
Lierac |
0 |
0 |
|
| 8325 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8247 |
657 |
|
|
8438 |
E |
Brand |
|
|
Lierac |
0 |
0 |
|
| 8139 |
657 |
|
|
8418 |
E |
Brand |
|
|
Cerave |
0 |
0 |
|
| 8323 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8127 |
657 |
|
|
8430 |
E |
Brand |
|
|
Anua |
0 |
0 |
|
| 9313 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8130 |
657 |
|
|
8432 |
E |
Brand |
|
|
Beauty of Joseon |
0 |
0 |
|
| 9291 |
657 |
|
|
8383 |
E |
Brand |
|
|
The Body Shop |
0 |
0 |
|
| 8132 |
657 |
|
|
8371 |
E |
Brand |
|
|
Beesline |
0 |
0 |
|
| 8322 |
657 |
|
|
8538 |
E |
Brand |
|
|
Shiseido |
0 |
0 |
|
| 8411 |
657 |
|
|
8383 |
E |
Brand |
|
|
The Body Shop |
0 |
0 |
|
| 8140 |
657 |
|
|
8418 |
E |
Brand |
|
|
Cerave |
0 |
0 |
|
| 8142 |
657 |
|
|
8418 |
E |
Brand |
|
|
Cerave |
0 |
0 |
|
| 8338 |
657 |
|
|
8375 |
E |
Brand |
|
|
Simple |
0 |
0 |
|
| 8306 |
657 |
|
|
8404 |
E |
Brand |
|
|
Mixsoon |
0 |
0 |
|
| 8143 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8337 |
657 |
|
|
8375 |
E |
Brand |
|
|
Simple |
0 |
0 |
|
| 8145 |
657 |
|
|
8373 |
E |
Brand |
|
|
Clarins |
0 |
0 |
|
| 8328 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8324 |
682 |
|
170.00 |
8826 |
S |
Capacity |
|
|
170ml |
0 |
300 |
|
| 8323 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8325 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8326 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8327 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8238 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8337 |
682 |
|
|
8658 |
S |
Capacity |
|
|
125ml |
0 |
300 |
|
| 8338 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8411 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 9291 |
682 |
|
|
8656 |
S |
Capacity |
|
|
100ml |
0 |
300 |
|
| 9313 |
682 |
|
|
8656 |
S |
Capacity |
|
|
100ml |
0 |
300 |
|
| 8150 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 7885 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8127 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8130 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8132 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8139 |
682 |
|
89.00 |
8752 |
S |
Capacity |
|
|
89 ml |
0 |
300 |
|
| 8140 |
682 |
|
|
8667 |
S |
Capacity |
|
|
236 ml |
0 |
300 |
|
| 8142 |
682 |
|
340.00 |
8754 |
S |
Capacity |
|
|
340 ml |
0 |
300 |
|
| 8143 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8145 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8149 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8322 |
682 |
|
|
8703 |
S |
Capacity |
|
|
50ml |
0 |
300 |
|
| 8152 |
682 |
|
|
8672 |
S |
Capacity |
|
|
100 ml |
0 |
300 |
|
| 8167 |
682 |
|
|
8750 |
S |
Capacity |
|
|
500 ml |
0 |
300 |
|
| 8200 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8202 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8235 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8247 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8250 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|
| 8259 |
682 |
|
|
8663 |
S |
Capacity |
|
|
200 ml |
0 |
300 |
|
| 8306 |
682 |
|
|
8669 |
S |
Capacity |
|
|
50 ml |
0 |
300 |
|