Query time 0.04695
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": 405,
"filtered": 0.788021922,
"attached_condition": "pfv.feature_id in (23483,24606,21385,24836,19925,25022,25021,23927,25095,25096,24703,21044,21655,19923,19645,23699,23700,19644,21924,21597,24202) and pfv.product_id in (33702,45357,1895,47654,5832,27357,38152,40824,49306,2471,1429,5834,6560,36399,6561,1042,1534,41231) 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 |
19644 |
6561 |
68323 |
0 |
Balance |
19645 |
6560 |
68326 |
0 |
Healing |
19923 |
5834 |
69619 |
0 |
4 chai |
19925 |
5832 |
69623 |
0 |
4 chai |
21044 |
2471 |
73501 |
0 |
30ml |
21385 |
1895 |
74802 |
0 |
Gỗ Thông |
21597 |
1534 |
75521 |
0 |
Túi 250gr |
21655 |
1429 |
75729 |
0 |
Màu xanh dương (70 x 70 cm) |
21924 |
1042 |
76739 |
0 |
Xanh cổ vịt |
23483 |
33702 |
81491 |
1 |
Vàng |
23699 |
36399 |
82207 |
2 |
Set 2 bao gối |
23700 |
36399 |
82217 |
10 |
Xanh Mint |
23927 |
38152 |
83214 |
1 |
Tím |
24202 |
41231 |
84329 |
1 |
Mẫu 1 |
24606 |
45357 |
85863 |
1 |
Lemongrass |
24703 |
49306 |
86163 |
3 |
Nâu đậm |
24836 |
47654 |
86606 |
1 |
Mẫu vẽ hoa sen ngẫu nhiên |
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 |