Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.64"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 22,
"rows_produced_per_join": 2,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.40",
"eval_cost": "0.44",
"prefix_cost": "6.80",
"data_read_per_join": "968"
},
"used_columns": [
"feature_id",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"status",
"position",
"feature_code",
"display_on_header",
"purpose"
],
"attached_condition": "((`ea201_francemaqu`.`f`.`display_on_catalog` = 'Y') and ((`ea201_francemaqu`.`f`.`categories_path` = '') or find_in_set(32,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(112,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(114,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(116,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(119,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(451,`ea201_francemaqu`.`f`.`categories_path`) or find_in_set(492,`ea201_francemaqu`.`f`.`categories_path`)) and (if(`ea201_francemaqu`.`f`.`parent_id`,(/* select#2 */ select `ea201_francemaqu`.`df`.`status` from `ea201_francemaqu`.`cscart_product_features` `df` where (`ea201_francemaqu`.`df`.`feature_id` = `ea201_francemaqu`.`f`.`parent_id`)),'A') = 'A'))",
"attached_subqueries": [
{
"dependent": true,
"cacheable": false,
"query_block": {
"select_id": 2,
"cost_info": {
"query_cost": "1.20"
},
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"ea201_francemaqu.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "1.20",
"data_read_per_join": "440"
},
"used_columns": [
"feature_id",
"status"
]
}
}
}
]
}
},
{
"table": {
"table_name": "v",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id"
],
"key_length": "6",
"ref": [
"ea201_francemaqu.f.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"index_condition": "(`ea201_francemaqu`.`v`.`lang_code` = 'fr')",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "9.44",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "((`ea201_francemaqu`.`v`.`variant_id` <> 0) or ((`ea201_francemaqu`.`f`.`feature_type` <> 'C') and (`ea201_francemaqu`.`v`.`value` <> '')) or (`ea201_francemaqu`.`f`.`feature_type` = 'C') or (`ea201_francemaqu`.`v`.`value_int` <> ''))"
}
},
{
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"ea201_francemaqu.f.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "12.08",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"description",
"prefix",
"suffix",
"lang_code",
"internal_name"
]
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"ea201_francemaqu.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "14.72",
"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": [
"ea201_francemaqu.fv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "17.36",
"data_read_per_join": "6K"
},
"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": [
"ea201_francemaqu.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "20.00",
"data_read_per_join": "967"
},
"used_columns": [
"feature_id",
"feature_type",
"position"
],
"attached_condition": "<if>(is_not_null_compl(gf), (`ea201_francemaqu`.`gf`.`feature_type` = 'G'), true)"
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"ea201_francemaqu.f.feature_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.44",
"prefix_cost": "22.64",
"data_read_per_join": "351"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`ea201_francemaqu`.`cscart_ult_objects_sharing`.`share_object_id` = `ea201_francemaqu`.`f`.`feature_id`)"
}
}
]
}
}
}
Result
feature_id |
value |
value_int |
variant_id |
feature_type |
internal_name |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
display_on_header |
display_on_catalog |
display_on_product |
feature_code |
purpose |
17 |
|
|
173 |
M |
Attention danger ! |
Attention danger ! |
|
|
Petites pièces, Interdit aux moins de 3 ans |
0 |
13 |
|
N |
Y |
Y |
|
find_products |
13 |
Longueur 295 mm Largeur 190 mm Hauteur 290 mm |
|
0 |
T |
Dimensions |
Dimensions |
|
|
|
0 |
3 |
|
N |
Y |
Y |
|
describe_product |
12 |
|
|
149 |
M |
Maquette plastique à peindre et à coller |
Maquette plastique à peindre et à coller |
|
|
NON - déjà peinte, pas besoins de colle |
0 |
6 |
|
N |
Y |
Y |
|
find_products |
3 |
|
|
1 |
S |
Marque |
Marque, Brand |
|
|
Revell |
0 |
1 |
|
Y |
Y |
Y |
|
find_products |
6 |
|
|
102 |
S |
Niveau de difficulté |
Niveau de difficulté |
|
|
Débutant |
0 |
5 |
|
N |
Y |
Y |
|
find_products |
16 |
|
93.00 |
0 |
O |
Nombre de pièces |
Nombre de pièces |
|
|
|
0 |
3 |
|
N |
Y |
Y |
|
find_products |
15 |
|
|
159 |
M |
Type |
Type |
|
|
Maquettes à thème |
0 |
6 |
|
N |
Y |
Y |
|
find_products |