Query time 0.01794
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": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "product_id"],
"rows": 453,
"filtered": 0.059458815,
"attached_condition": "pfv.feature_id in (20011,20001,20005,23357,20861,20260,25022,25021,23927,23536,23537,20879,20261,19627,20234,25095,25096,21054,20003,21021,20259,23415) and pfv.product_id in (5546,5556,16607,6060,2920,4440,27357,38152,35249,2932,18258,14822,18201,40824,2461,5554,2505,4441,33177) 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 |
19627 |
14822 |
68241 |
0 |
Dâu |
20001 |
5556 |
69909 |
0 |
Xay mịn espresso |
20003 |
5554 |
69915 |
0 |
Xay mịn espresso |
20005 |
16607 |
69919 |
0 |
Nguyên hạt |
20011 |
5546 |
69939 |
0 |
Tương Ớt Xông Khói Saigon Sweet’N’Spicy |
20234 |
18201 |
70814 |
0 |
Hũ lớn |
20259 |
4441 |
70893 |
0 |
Girly |
20260 |
4440 |
70896 |
0 |
Mèo tím |
20261 |
18258 |
70897 |
0 |
Hổ trắng |
20861 |
2920 |
72912 |
0 |
Màu vàng nhạt |
20879 |
2932 |
72967 |
0 |
Xanh đen |
21021 |
2505 |
73437 |
0 |
Chai lẻ |
21054 |
2461 |
73520 |
0 |
70g |
23357 |
6060 |
81032 |
1 |
Hộp 50gr |
23415 |
33177 |
81215 |
1 |
Bữa tiệc của đại dương |
23536 |
35249 |
81679 |
1 |
Túi laptop 13 inch |
23537 |
35249 |
81684 |
4 |
Màu đen |
23927 |
38152 |
83214 |
1 |
Tím |
25021 |
27357 |
87278 |
0 |
15x20 (cỡ A5) |
25022 |
27357 |
87281 |
0 |
Đậm |
25095 |
40824 |
87603 |
1 |
Lavender |
25096 |
40824 |
87605 |
0 |
"happy birthday + hoa" - Màu Muối Tiêu |