Query time 0.01079
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": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rowid_filter": {
"range": {
"key": "fl",
"used_key_parts": ["feature_id", "lang_code"]
},
"rows": 369,
"selectivity_pct": 0.233243154
},
"rows": 92,
"filtered": 1.993507862,
"index_condition": "pfv.product_id in (1977,44944,3864,43825,2291,35167,35174,35176,35172,35171,44947,35731,23261,2288,118,47656,49192)",
"attached_condition": "pfv.feature_id in (21326,24566,24567,20474,24444,21157,23527,23531,23533,23530,23529,24551,24569,23622,23623,21665,21158,22512,24836,20545) and pfv.lang_code = 'vi'"
}
},
{
"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 |
22512 |
118 |
79019 |
0 |
Size nhỏ: 100gr |
21326 |
1977 |
74602 |
0 |
Túi Zip |
21158 |
2288 |
74003 |
0 |
Túi zip |
21157 |
2291 |
73997 |
0 |
Gói lẻ ướp thường |
20474 |
3864 |
71638 |
0 |
Trắng |
21665 |
23261 |
75763 |
0 |
Trọn bộ |
23527 |
35167 |
81657 |
1 |
Bông tai |
23529 |
35171 |
81663 |
1 |
Bông tai |
23530 |
35172 |
81665 |
1 |
Set 1 |
23531 |
35174 |
81667 |
1 |
Dây chuyền |
23533 |
35176 |
81672 |
1 |
Dây dài 12-15cm |
23623 |
35731 |
81913 |
1 |
Đỏ |
23622 |
35731 |
81910 |
1 |
Mèo cái nằm |
24444 |
43825 |
85255 |
1 |
Trà xanh Cao Bồ 100g + Hồng trà Vị Xuyên 50g |
24567 |
44944 |
85746 |
1 |
Size S |
24566 |
44944 |
85738 |
1 |
Trắng |
24569 |
44947 |
85757 |
1 |
Size S |
24551 |
44947 |
85626 |
1 |
Trắng |
24836 |
47656 |
86606 |
1 |
Mẫu vẽ hoa sen ngẫu nhiên |
20545 |
49192 |
71868 |
0 |
Be mine |