Query time 0.00101
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": 5,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 5257 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 |
20446 |
5257 |
5356 |
Luna Ng |
|
|
Good quality |
Tea is quite tasty, clean and smooth. It's more on the tangy side and not as earthy as I imagined though. |
5 |
abf4b968 |
N |
1708340154 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20444 |
5257 |
5356 |
Ngọc Mai |
|
|
Ngonnnnnnn |
Trà uống được, thanh, cảm giác hơi đắng cỏ. Không thích lắm, lần sau sẽ thử loại khác |
5 |
abf4b968 |
N |
1708340138 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20439 |
5257 |
5356 |
Minh Châu |
|
|
Hài lòng |
Đơn hàng đã được vận chuyển nhanh chóng. Đóng gói bao bì rất chắc chắn. Trà khô thơm, chưa uống thử nhưng thấy chất lượng. |
5 |
abf4b968 |
N |
1708340122 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20438 |
5257 |
5356 |
Ngọc Trinh |
|
|
okkkkk |
Túi zip tiện lợi và dễ sử dụng. Hương vị hấp dẫn. |
5 |
abf4b968 |
N |
1708340107 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20434 |
5257 |
5356 |
Minh Anh Nguyen |
|
|
Chất lượng |
Mình thực sự hài lòng với trải nghiệm mua hàng tại chus. Còn riêng về sản phẩm thì trà sả chanh không hợp gu mình lắm, tò mò nên mua gói nhỏ này thôi. Nhưng nếu nói về chất lượng thì vẫn rất tốt nha, nếu ai thích mùi sả chanh, chua chua nhẹ thì nên mua. |
4 |
abf4b968 |
N |
1708340092 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
10783 |
5257 |
5292 |
Lường Nguyên Giáp |
|
|
Đóng Gói Đẹp |
thơm |
4 |
71a2b5b1 |
N |
1628078543 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |