Query time 0.01441
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "pfv",
"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": 158,
"filtered": 0.428388953,
"attached_condition": "pfv.feature_id in (21041,20200,21910,23730,20167,20202,23480,23646,23312,24634,24829,24828,23481) and pfv.product_id in (2474,4808,1064,36295,4872,4806,33698,35690,32307,45569,47622,33700) and pfv.lang_code = 'vi'",
"using_index": true
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["dev_db.pfv.variant_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "fv.feature_id = pfv.feature_id"
}
},
{
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["dev_db.pfv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "fvd.lang_code = 'vi'"
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
21910 |
1064 |
76692 |
0 |
Tranh hoa Cam " Stop waiting for tomorrow, start now" |
21041 |
2474 |
73495 |
0 |
30ml |
20202 |
4806 |
70690 |
0 |
Size 36 (24cm) |
20200 |
4808 |
70683 |
0 |
Size 36 (24cm) |
20167 |
4872 |
70573 |
0 |
Cành hoa và cá |
23312 |
32307 |
80874 |
1 |
Màu xanh lá giả cổ |
23480 |
33698 |
81481 |
1 |
Dương xỉ |
23481 |
33700 |
81483 |
1 |
Hoa hồng |
23646 |
35690 |
81991 |
1 |
Khảm trai trắng |
23730 |
36295 |
82372 |
1 |
Light brown |
24634 |
45569 |
85990 |
1 |
Lemongrass |
24828 |
47622 |
86585 |
1 |
2 túi chườm mắt |
24829 |
47622 |
86587 |
1 |
Oải hương tươi mát |