Query time 0.00174
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 <=> 31904 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 = 'en')"
}
}
]
}
}
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 |
22724 |
31904 |
7325 |
Thanh Loan |
|
|
Tuyệt vời |
Trà thơm, thoảng mùi hoa cỏ nhẹ nhàng, uống vào cảm giác sảng khoái, tỉnh táo. Mình hay pha trà nếu cần mỗi khi thức khuya, giúp mình tập trung hơn và học bài hiệu quả hơn |
5 |
1b4af3fb |
N |
1711093139 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
22725 |
31904 |
7325 |
Thủy Tiên |
|
|
Tuyệt vời |
Mình mới mua pha thử và ai cũng khen ngon. Trà có vị chát nhẹ, hậu vị ngọt thanh, rất dễ uống. Mình cũng thấy da dẻ mình sáng hơn sau khi uống trà đều đặn |
5 |
1b4af3fb |
N |
1711093139 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
22723 |
31904 |
7325 |
Uyển Ân |
|
|
Tuyệt vời |
Mình là đứa nghiện trà sữa, nhưng từ khi biết đến trà này là mê tít luôn. Vị trà thanh mát, ngọt nhẹ, thơm mùi hoa cỏ tự nhiên, uống vào sảng khoái cực kỳ. Mình hay pha trà mang theo đi học, vừa tiện lợi vừa tốt cho sức khỏe. Da dẻ mình cũng sáng mịn hơn sau khi uống trà đều đặn. Nói chung là ưng ý dã man! |
5 |
1b4af3fb |
N |
1711093138 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
22722 |
31904 |
7325 |
Declan Brown |
|
|
Great |
This tea is perfect in the afternoon when I need a little energy boost. Plus, it tastes amazing! |
5 |
1b4af3fb |
N |
1711093137 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |