Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_product_reviews.product_review_timestamp desc",
"table": {
"table_name": "cscart_product_reviews",
"access_type": "ref",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"rows": 9,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 314 and cscart_product_reviews.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "cscart_users",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["user_id"],
"ref": ["dev_db.cscart_product_reviews.reply_user_id"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["dev_db.cscart_users.company_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(cscart_users.company_id is not null))"
}
},
{
"table": {
"table_name": "cscart_country_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "12",
"used_key_parts": ["code", "lang_code"],
"ref": ["dev_db.cscart_product_reviews.country_code", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_country_descriptions.lang_code = 'vi')"
}
}
]
}
}
Result
product_review_id |
product_id |
user_id |
name |
advantages |
disadvantages |
quick_comment |
comment |
rating_value |
ip_address |
is_buyer |
product_review_timestamp |
country_code |
city |
reply_user_id |
reply |
reply_timestamp |
helpfulness |
status |
storefront_id |
images_count |
vote_up |
vote_down |
reply_company_id |
reply_company |
country |
17997 |
314 |
9421 |
Kim Thị Bảo Trân |
|
|
Đóng gói đẹp |
Ngon lắm nha |
5 |
abf4b968 |
N |
1691029116 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
16962 |
314 |
6941 |
Linh Trần |
|
|
Bao bì đẹp mắt quá! |
Thiết kế nhìn ưng ghê luôn, mình mua để tặng á. Chị bạn bảo là mỗi túi đều vừa cho một lần ăn của chị í. Hạt giòn ngon và thơm béo. Chị thành fan Happi Oha luôn. Mình rất vui, sẽ mua thêm để sử dụng lẫn tặng biếu. |
5 |
abf4b968 |
N |
1689826843 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
16530 |
314 |
9326 |
Quốc Bảo Nguyễn Trần |
|
|
Đánh giá cao |
buổi ăn sáng dinh dưỡng mà còn ngon |
5 |
1b4af3fb |
N |
1689584581 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
14633 |
314 |
6651 |
Quoc |
|
|
Chất lượng tốt |
mua làm quà tặng hợp lý luôn |
5 |
71a2a5e5 |
N |
1664184966 |
VN |
01 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
12457 |
314 |
5562 |
Đậu Duy Cương |
|
|
Good Quality |
i can make little afternoon snack for the kids with this. |
5 |
0ea10149 |
N |
1661425501 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11460 |
314 |
5432 |
Phượng Đặng Thu |
|
|
Tuyệt Vời |
Nhà em gần miếu gần chùa , không yêu em cũng thả bùa cho yêu |
5 |
0ea10149 |
N |
1660128593 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11021 |
314 |
5562 |
Viên Kim Phú |
|
|
Great |
i feel full for longer without feeling snacky |
5 |
0ea10149 |
N |
1659609299 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
14177 |
314 |
5562 |
Đương Quảng Thông |
|
|
Chất Lượng Cao |
xịn xịn |
5 |
0eba219d |
N |
1653791803 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
12545 |
314 |
5562 |
Chử Duy Uyên |
|
|
Chất Lượng Cao |
Ngon |
5 |
0ea10149 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |