Query time 0.02787
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": 240,
"selectivity_pct": 0.151702865
},
"rows": 124,
"filtered": 0.151702866,
"index_condition": "pfv.product_id in (5472,5588,5462,5590,5478,5957,5961,16802,35733,5448,4363,5956,4361,5451,5479,4366,4360,5591,5485,5587,5963)",
"attached_condition": "pfv.feature_id in (20034,19991,20038,19989,20031,19843,19839,20036,23626,20042,20296,19844,20298,20041,20030,20293,20299,19988,20027,19992,19837) 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 |
20299 |
4360 |
71016 |
0 |
Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG |
20298 |
4361 |
71014 |
0 |
Đầu tư |
20296 |
4363 |
71006 |
0 |
Chớ thấy SÓNG CẢ mà NGÃ TAY CHÈO |
20293 |
4366 |
70992 |
0 |
Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG |
20042 |
5448 |
70090 |
0 |
Tín |
20041 |
5451 |
70087 |
0 |
Trắng trơn |
20038 |
5462 |
70074 |
0 |
Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG |
20034 |
5472 |
70047 |
0 |
Nhẫn |
20031 |
5478 |
70034 |
0 |
Làm việc hết mình |
20030 |
5479 |
70029 |
0 |
Mẫu 6 |
20027 |
5485 |
70007 |
0 |
Mẫu 1 |
19992 |
5587 |
69883 |
0 |
Quần mùa hè |
19991 |
5588 |
69877 |
0 |
Quần mùa hè |
19989 |
5590 |
69865 |
0 |
Áo và váy |
19988 |
5591 |
69859 |
0 |
Quần mùa hè |
19844 |
5956 |
69032 |
0 |
Phát |
19843 |
5957 |
69022 |
0 |
Think positive |
19839 |
5961 |
68986 |
0 |
Be creative |
19837 |
5963 |
68974 |
0 |
Tâm |
20036 |
16802 |
70064 |
0 |
Tri ân thầy cô |
23626 |
35733 |
81927 |
1 |
Vàng |