Query time 0.00221
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.12840163,
"filesort": {
"sort_key": "fd.internal_name, fv.position",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "f",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "status"],
"loops": 1,
"rows": 53,
"cost": 0.0194938,
"filtered": 100,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(330,f.categories_path) or find_in_set(331,f.categories_path)) and if(f.parent_id,(subquery#2),'A') = 'A'"
}
},
{
"table": {
"table_name": "v",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "lang_code",
"key_length": "12",
"used_key_parts": ["lang_code", "feature_id", "product_id"],
"ref": ["const", "u985510652_ecartify_abhi.f.feature_id", "const"],
"rowid_filter": {
"range": {
"key": "product_id",
"used_key_parts": ["product_id"]
},
"rows": 30,
"selectivity_pct": 8.123607e-4
},
"loops": 53,
"rows": 1,
"cost": 0.10205327,
"filtered": 8.123607e-4,
"index_condition": "v.lang_code = 'en'",
"attached_condition": "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": ["u985510652_ecartify_abhi.f.feature_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'en')"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["u985510652_ecartify_abhi.v.variant_id"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"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": ["u985510652_ecartify_abhi.fv.variant_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"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": ["u985510652_ecartify_abhi.f.parent_id"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
}
}
],
"subqueries": [
{
"subquery_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"cost": 0.00171364,
"nested_loop": [
{
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["u985510652_ecartify_abhi.f.parent_id"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100
}
}
]
}
}
}
]
}
}
}
}
Result
| feature_id |
value |
value_int |
variant_id |
feature_type |
internal_name |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
display_on_header |
display_on_catalog |
display_on_product |
feature_code |
purpose |
| 566 |
|
|
2481 |
S |
Brand |
Brand |
|
|
CS-Cart |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 549 |
|
|
2494 |
S |
Color |
Color |
|
|
Leather |
0 |
10 |
|
N |
Y |
Y |
|
group_catalog_item |
| 551 |
|
|
1708 |
S |
Model |
Model |
|
|
1500/2500 |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 553 |
|
|
1781 |
S |
Roof Variation |
Roof Variation |
|
|
Factory rail |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 556 |
|
|
1457 |
S |
Vehicle Type |
Vehicle Type |
|
|
EXLWB |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 557 |
|
|
1770 |
S |
Vehicle Year |
Vehicle Year |
|
|
- Current |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 564 |
|
|
2262 |
S |
Width |
Width |
|
|
1100 |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 562 |
|
|
1998 |
S |
Width (maximum) |
Width (maximum) |
|
|
1200 |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |
| 563 |
|
|
2207 |
S |
Width (minimum) |
Width (minimum) |
|
|
1050 |
0 |
0 |
|
N |
Y |
Y |
|
group_variation_catalog_item |