Query time 0.03843
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": 366,
"filtered": 0.703962505,
"attached_condition": "pfv.feature_id in (24744,23690,23691,22396,25022,25021,23536,23537,20879,19627,21054,25095,25096,21021,23415,24703,21383,19628,24240,20345) and pfv.product_id in (47016,36329,319,27357,35249,2932,14822,2461,40824,2505,33177,47018,49306,1897,6577,33214,4238) 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 |
19628 |
6577 |
68251 |
0 |
Sả Java |
20345 |
4238 |
71203 |
0 |
Hoa - Ngang |
20879 |
2932 |
72967 |
0 |
Xanh đen |
21021 |
2505 |
73437 |
0 |
Chai lẻ |
21054 |
2461 |
73520 |
0 |
70g |
21383 |
1897 |
74795 |
0 |
Hạt gỗ 6 ly (1 vòng) |
22396 |
319 |
78516 |
0 |
Nâu |
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 |
23690 |
36329 |
82141 |
2 |
Set 2 bao gối |
23691 |
36329 |
82153 |
12 |
Vàng Mustard |
24240 |
33214 |
84462 |
1 |
Mẫu 1 |
24703 |
49306 |
86163 |
3 |
Nâu đậm |
24744 |
47016 |
86297 |
1 |
Size S |
24744 |
47018 |
86297 |
1 |
Size S |
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 |