Query time 0.00170
JSON explain
{
"query_block": {
"select_id": 1,
"const_condition": "if(0,(subquery#2),'A') = 'A'",
"filesort": {
"sort_key": "fd.description, fv.position",
"temporary_table": {
"table": {
"table_name": "f",
"access_type": "const",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
},
"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": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"rows": 16,
"filtered": 100,
"index_condition": "v.feature_id = 2 and v.product_id in (20845,20846,20847,20848,20849,20850,20851,20852,20853,20854,20855,20856,20857,20858,20859,20860) and v.lang_code = 'ru'",
"attached_condition": "v.variant_id <> 0 or v.`value` <> '' or v.value_int <> ''"
},
"table": {
"table_name": "fd",
"access_type": "const",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'ru')"
},
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["devmotorsbay.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": ["devmotorsbay.fv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vd.lang_code = 'ru' 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": ["const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
},
"subqueries": [
{
"query_block": {
"select_id": 2,
"table": {
"message": "Impossible WHERE noticed after reading const tables"
}
}
}
]
}
}
}
}
Result
| product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
| 20858 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20850 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20859 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20851 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20860 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20852 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20845 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20853 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20854 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20846 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20855 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20847 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20856 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20848 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20857 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 20849 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|