Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"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": "idx_product_feature_variant_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"rows": 4,
"filtered": 50.94696808,
"attached_condition": "cscart_product_features_values.product_id <=> 1176 and cscart_product_features_values.lang_code = 'es'"
}
},
{
"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": ["live_clonned.cscart_product_features_values.feature_id"],
"rows": 1,
"filtered": 72.36842346,
"attached_condition": "pf.feature_type <> 'G' and pf.`status` = 'A' and pf.company_id in (0,112) and pf.display_on_product = 'Y' and (pf.categories_path = '' or pf.categories_path is null or find_in_set(266,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": ["live_clonned.pf.parent_id"],
"rows": 1,
"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": ["live_clonned.pf.parent_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(pf_groups_description.lang_code = 'es')"
}
},
{
"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": [
"live_clonned.cscart_product_features_values.feature_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_features_descriptions.lang_code = 'es')"
}
}
]
}
}
}
}
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 |
589 |
0 |
S |
551 |
Y |
Y |
Y |
Color |
Color |
es |
|
|
|
|
A |
N |
0 |
group_catalog_item |
dropdown |
checkbox |
|
1644791137 |
1659729261 |
0 |
|
1967 |
|
553 |
0 |
E |
551 |
Y |
Y |
Y |
Marca |
Marca |
es |
|
|
|
|
A |
N |
0 |
organize_catalog |
brand |
checkbox |
|
1628167915 |
1705319810 |
0 |
|
2065 |
|