Query time 0.00364
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "fd.description, fv.position",
"temporary_table": {
"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": "idx_product_feature_variant_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 129,
"filtered": 32.53516388,
"index_condition": "v.product_id in (13267,11749,13191,12005,13040,11695,11696,11697,12924,11699,11700,13265,12925,11750,13201,11702) and v.lang_code = 'en'"
}
},
{
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["lillyshop_lillyshop.v.feature_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(387,f.categories_path) or find_in_set(429,f.categories_path) or find_in_set(430,f.categories_path)) and if(f.parent_id,(subquery#2),'A') = 'A' and (v.variant_id <> 0 or f.feature_type <> 'C' and v.`value` <> '' or f.feature_type = 'C' or v.value_int <> '')"
}
},
{
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["lillyshop_lillyshop.v.feature_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "159",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"ref": ["lillyshop_lillyshop.v.feature_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_ult_objects_sharing.share_object_id = v.feature_id and cscart_ult_objects_sharing.share_object_type = 'product_features'",
"using_index": true
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["lillyshop_lillyshop.v.variant_id"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["lillyshop_lillyshop.fv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vd.lang_code = 'en' and trigcond(fv.variant_id is not null))"
}
},
{
"table": {
"table_name": "gf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["lillyshop_lillyshop.f.parent_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
}
}
],
"subqueries": [
{
"expression_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"nested_loop": [
{
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["lillyshop_lillyshop.f.parent_id"],
"rows": 1,
"filtered": 100
}
}
]
}
}
}
]
}
}
}
}
Result
| product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
| 13201 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 13040 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 12924 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11750 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11702 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11699 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 13265 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11696 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 13191 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 12925 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 12005 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11749 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 13267 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11700 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11697 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 11695 |
69 |
|
|
1862 |
E |
Brand |
|
|
Komilfo |
0 |
0 |
|
| 12005 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11749 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 13267 |
84 |
|
|
3096 |
S |
Color |
|
|
Beige |
0 |
0 |
|
| 11700 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11697 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11695 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 13040 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 12924 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11750 |
84 |
|
|
3085 |
S |
Color |
|
|
Lactic |
0 |
0 |
|
| 11702 |
84 |
|
|
4922 |
S |
Color |
|
|
Lilac |
0 |
0 |
|
| 13265 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11699 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 11696 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 13191 |
84 |
|
|
3089 |
S |
Color |
|
|
Pink |
0 |
0 |
|
| 12925 |
84 |
|
|
3085 |
S |
Color |
|
|
Lactic |
0 |
0 |
|
| 13267 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11700 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11697 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11695 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 13201 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 13040 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 12924 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11750 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11702 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 13265 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11699 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11696 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 13191 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 12925 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 12005 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11749 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|