Query time 0.00293
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": 186,
"filtered": 32.53516388,
"index_condition": "v.product_id in (11059,6813,6919,6920,6921,6923,6922,11211,10640,8865,21995,22344,21996,20369,20370,20371,8000,6704,6740,6751,6769,6743,6777,6781) 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(434,f.categories_path) or find_in_set(435,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 |
| 6923 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 11059 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6740 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6777 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6751 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 8865 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6813 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 10640 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6920 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6922 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6743 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6704 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 8000 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6769 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 11211 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6781 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6921 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6919 |
69 |
|
|
1895 |
E |
Brand |
|
|
Kira Nails |
0 |
0 |
|
| 6743 |
84 |
|
|
3085 |
S |
Color |
|
|
Lactic |
0 |
0 |
|
| 8000 |
84 |
|
|
3090 |
S |
Color |
|
|
Light green |
0 |
0 |
|
| 6781 |
84 |
|
|
3103 |
S |
Color |
|
|
Brown |
0 |
0 |
|
| 6921 |
84 |
|
|
3104 |
S |
Color |
|
|
Red |
0 |
0 |
|
| 6923 |
84 |
|
|
3104 |
S |
Color |
|
|
Red |
0 |
0 |
|
| 11059 |
84 |
|
|
3099 |
S |
Color |
|
|
Blue |
0 |
0 |
|
| 6777 |
84 |
|
|
3096 |
S |
Color |
|
|
Beige |
0 |
0 |
|
| 6813 |
84 |
|
|
3102 |
S |
Color |
|
|
Gold |
0 |
0 |
|
| 10640 |
84 |
|
|
3101 |
S |
Color |
|
|
Green |
0 |
0 |
|
| 6921 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6919 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6923 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 11059 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6740 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6777 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6751 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6813 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 10640 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6920 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6922 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6743 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6704 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 8000 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6769 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 11211 |
70 |
|
|
1859 |
M |
Country of origin |
|
|
USA |
0 |
0 |
|
| 6781 |
70 |
|
|
1870 |
M |
Country of origin |
|
|
Ukraine |
0 |
0 |
|
| 6781 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6921 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6919 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6923 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 11059 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6740 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6777 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6751 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6813 |
72 |
|
|
1899 |
M |
Gel polish effect |
|
|
With sequins |
0 |
0 |
|
| 10640 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6920 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6922 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6743 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6704 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 8000 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|
| 6769 |
72 |
|
|
1897 |
M |
Gel polish effect |
|
|
Neon |
0 |
0 |
|
| 11211 |
72 |
|
|
1860 |
M |
Gel polish effect |
|
|
Enamel |
0 |
0 |
|