Query time 0.00985
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.041599945,
"filesort": {
"sort_key": "pf_groups.position, pf_groups_description.description, pf_groups.feature_id, pf.position, tmall_product_features_descriptions.description, pf.feature_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "tmall_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"],
"loops": 1,
"rows": 4,
"cost": 0.005726018,
"filtered": 99.73403931,
"index_condition": "tmall_product_features_values.lang_code = 'en'",
"attached_condition": "tmall_product_features_values.product_id <=> 70"
}
},
{
"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": ["tmall.tmall_product_features_values.feature_id"],
"loops": 3.989361702,
"rows": 1,
"cost": 0.00710251,
"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(234,pf.categories_path) or find_in_set(236,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": ["tmall.pf.parent_id"],
"loops": 3.989361702,
"rows": 1,
"cost": 0.00710251,
"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": ["tmall.pf.parent_id", "const"],
"loops": 3.989361702,
"rows": 1,
"cost": 0.00710251,
"filtered": 100,
"attached_condition": "trigcond(pf_groups_description.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tmall_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["tmall.tmall_product_features_values.feature_id", "const"],
"loops": 3.989361702,
"rows": 1,
"cost": 0.00710251,
"filtered": 100,
"attached_condition": "trigcond(tmall_product_features_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "abt_filters",
"access_type": "ref",
"possible_keys": ["feature_id", "company_id"],
"key": "company_id",
"key_length": "5",
"used_key_parts": ["company_id"],
"ref": ["tmall.pf.company_id"],
"loops": 3.989361702,
"rows": 1,
"cost": 0.007463886,
"filtered": 100,
"attached_condition": "trigcond(abt_filters.feature_id = tmall_product_features_values.feature_id)"
}
}
]
}
}
}
}
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 |
filter_id |
| 15 |
0 |
S |
14 |
Y |
Y |
N |
Operating System |
Operating System |
en |
|
|
165,166,167,168,169,170,174,182,190,191,193,234,235,236,237,238,240 |
|
A |
N |
10 |
find_products |
text |
checkbox |
|
0 |
0 |
0 |
|
66 |
|
7 |
| 16 |
0 |
S |
14 |
Y |
Y |
N |
Display |
Display |
en |
|
|
165,166,167,168,169,170,174,182,190,191,193,234,235,236,237,238,240 |
|
A |
N |
20 |
find_products |
text |
checkbox |
|
0 |
0 |
0 |
|
67 |
|
8 |
| 17 |
0 |
S |
14 |
Y |
Y |
N |
Storage Capacity |
Storage Capacity |
en |
|
|
165,166,167,168,169,170,174,182,190,191,193,234,235,236,237,238,240 |
|
A |
N |
30 |
find_products |
text |
checkbox |
|
0 |
0 |
0 |
|
75 |
|
9 |