Query time 0.00126
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": "fpl",
"key_length": "12",
"used_key_parts": ["feature_id", "product_id", "lang_code"],
"rows": 10,
"filtered": 100,
"index_condition": "v.feature_id = 2 and v.product_id in (25271,25272,25273,25274,25275,25276,25277,25278,25279,25280) and v.lang_code = 'ko'",
"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 = 'ko')"
},
"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 = 'ko' 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 |
| 25280 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25272 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25273 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25274 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25275 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25276 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25277 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25278 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25271 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|
| 25279 |
2 |
|
|
12 |
E |
브랜드 |
|
|
제네시스 |
0 |
0 |
|