Query time 0.00455
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.98"
},
"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": 261,
"rows_produced_per_join": 84,
"filtered": "32.51",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (10078,11629,8597,8280,8443,8596,11632,8405,8584,8588,8437,8515,8542,10446,10492,11623,11624,11625,11626,11627,11628,11631))",
"cost_info": {
"read_cost": "114.47",
"eval_cost": "8.49",
"prefix_cost": "122.96",
"data_read_per_join": "65K"
},
"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": 8,
"filtered": "9.53",
"cost_info": {
"read_cost": "21.22",
"eval_cost": "0.81",
"prefix_cost": "152.66",
"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(166,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(423,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(448,`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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.02",
"eval_cost": "0.81",
"prefix_cost": "155.49",
"data_read_per_join": "18K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.02",
"eval_cost": "0.81",
"prefix_cost": "158.32",
"data_read_per_join": "9K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.02",
"eval_cost": "0.81",
"prefix_cost": "161.15",
"data_read_per_join": "24K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.02",
"eval_cost": "0.81",
"prefix_cost": "163.98",
"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 |
| 11623 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11632 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 10492 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11625 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11627 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11631 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11626 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 10446 |
718 |
|
|
3978 |
S |
Edge Coverage |
|
|
Full Coverage |
0 |
0 |
|
| 11624 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11628 |
718 |
|
|
3983 |
S |
Edge Coverage |
|
|
Full Coverage (Edge to Edge) |
0 |
0 |
|
| 11628 |
719 |
|
|
10124 |
S |
Finish |
|
|
Glossy |
0 |
0 |
|
| 11623 |
719 |
|
|
10122 |
S |
Finish |
|
|
Clear and Glossy |
0 |
0 |
|
| 10492 |
719 |
|
|
3982 |
S |
Finish |
|
|
Clear |
0 |
0 |
|
| 11627 |
719 |
|
0.00 |
10123 |
S |
Finish |
|
|
Glossy clear screen |
0 |
0 |
|
| 10446 |
719 |
|
|
9280 |
S |
Finish |
|
|
Clear / High Transparency |
0 |
0 |
|
| 11626 |
719 |
|
|
10122 |
S |
Finish |
|
|
Clear and Glossy |
0 |
0 |
|
| 11624 |
719 |
|
|
10122 |
S |
Finish |
|
|
Clear and Glossy |
0 |
0 |
|
| 11629 |
719 |
|
|
10124 |
S |
Finish |
|
|
Glossy |
0 |
0 |
|
| 11632 |
719 |
|
|
10124 |
S |
Finish |
|
|
Glossy |
0 |
0 |
|
| 11631 |
719 |
|
|
10124 |
S |
Finish |
|
|
Glossy |
0 |
0 |
|
| 11625 |
719 |
|
|
10122 |
S |
Finish |
|
|
Clear and Glossy |
0 |
0 |
|
| 11625 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11628 |
717 |
|
|
3976 |
S |
Privacy Option |
|
|
Yes |
0 |
0 |
|
| 11632 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11623 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11626 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 10492 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11631 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 10446 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11629 |
717 |
|
|
3976 |
S |
Privacy Option |
|
|
Yes |
0 |
0 |
|
| 11627 |
717 |
|
|
3976 |
S |
Privacy Option |
|
|
Yes |
0 |
0 |
|
| 11624 |
717 |
|
|
3977 |
S |
Privacy Option |
|
|
No |
0 |
0 |
|
| 11624 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11623 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11625 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11626 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 10492 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11627 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11628 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11629 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11631 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11632 |
716 |
|
|
3975 |
S |
Protection Type |
|
|
Tempered Glass |
0 |
0 |
|
| 11626 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 11627 |
656 |
|
|
1560 |
S |
لون |
|
|
Black |
0 |
160 |
|
| 11628 |
656 |
|
|
1560 |
S |
لون |
|
|
Black |
0 |
160 |
|
| 11629 |
656 |
|
|
1560 |
S |
لون |
|
|
Black |
0 |
160 |
|
| 11625 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 11631 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 11632 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 10078 |
656 |
|
|
1560 |
S |
لون |
|
|
Black |
0 |
160 |
|
| 8542 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8584 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8515 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8588 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8596 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8443 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8437 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 10446 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8405 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 10492 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 11623 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8280 |
656 |
|
|
6271 |
S |
لون |
|
|
Clear |
0 |
160 |
|
| 11624 |
656 |
|
|
3985 |
S |
لون |
|
|
Transparent |
0 |
160 |
|
| 8437 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 11632 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 8588 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8443 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8405 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8515 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 11631 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 8542 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8280 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8584 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 11629 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 11625 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 8596 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 8597 |
657 |
|
|
2078 |
E |
ماركة |
|
|
Hama |
0 |
0 |
|
| 11628 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 10078 |
657 |
|
0.00 |
9168 |
E |
ماركة |
|
|
Caisles |
0 |
0 |
|
| 10446 |
657 |
|
|
9219 |
E |
ماركة |
|
|
Nothing |
0 |
0 |
|
| 10492 |
657 |
|
|
9293 |
E |
ماركة |
|
|
X-level |
0 |
0 |
|
| 11627 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 11623 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 11624 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|
| 11626 |
657 |
|
|
3820 |
E |
ماركة |
|
|
Dviced |
0 |
0 |
|