Query time 0.00119
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.017594128,
"filesort": {
"sort_key": "pf_groups.position, pf_groups_description.description, pf_groups.feature_id, pf.position, cscart_product_features_descriptions.description, pf.feature_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"loops": 1,
"rows": 4,
"cost": 0.00889648,
"filtered": 37.87878799,
"index_condition": "cscart_product_features_values.lang_code = 'en'",
"attached_condition": "cscart_product_features_values.product_id <=> 391030"
}
},
{
"table": {
"table_name": "pf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "company_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": [
"u985510652_ecartify.cscart_product_features_values.feature_id"
],
"loops": 1.515151515,
"rows": 1,
"cost": 0.002174412,
"filtered": 100,
"attached_condition": "pf.feature_type <> 'G' and pf.`status` = 'A' and pf.company_id in (0,1) and pf.display_on_product = 'Y' and (pf.categories_path = '' or pf.categories_path is null or find_in_set(166,pf.categories_path) or find_in_set(478,pf.categories_path))"
}
},
{
"table": {
"table_name": "pf_groups",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["u985510652_ecartify.pf.parent_id"],
"loops": 1.515151515,
"rows": 1,
"cost": 0.002174412,
"filtered": 100,
"attached_condition": "trigcond(pf_groups.`status` = 'A' or pf_groups.`status` is null)"
}
},
{
"table": {
"table_name": "pf_groups_description",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["u985510652_ecartify.pf.parent_id", "const"],
"loops": 1.515151515,
"rows": 1,
"cost": 0.002174412,
"filtered": 100,
"attached_condition": "trigcond(pf_groups_description.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": [
"u985510652_ecartify.cscart_product_features_values.feature_id",
"const"
],
"loops": 1.515151515,
"rows": 1,
"cost": 0.002174412,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_features_descriptions.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| feature_id |
company_id |
feature_type |
parent_id |
display_on_product |
display_on_catalog |
display_on_header |
description |
internal_name |
lang_code |
prefix |
suffix |
categories_path |
full_description |
status |
comparison |
position |
purpose |
feature_style |
filter_style |
feature_code |
timestamp |
updated_timestamp |
group_position |
value |
variant_id |
value_int |
| 549 |
0 |
S |
0 |
Y |
Y |
N |
Color |
Color |
en |
|
|
|
|
A |
Y |
10 |
group_catalog_item |
dropdown_images |
checkbox |
|
0 |
1764757105 |
|
|
1199 |
|