Query time 0.00139
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": 10,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 6372 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 |
20229 |
6372 |
7325 |
Julie Caroline |
|
|
Gift-Ready Goodness |
Packaging was so beautiful and well-presented, it felt like a gift even before I opened it. Perfect for gifting directly! |
5 |
abf4b968 |
N |
1708338808 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20227 |
6372 |
7325 |
Jung Woo |
|
|
Good |
This gift box is a game-changer! I'll cherish the wonderful experiences it brought me and will definitely be recommending it to all my friends and family. |
5 |
abf4b968 |
N |
1708338794 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20222 |
6372 |
7325 |
Khánh Huyền |
|
|
Xinh |
Nến thơm có hương dịu nhẹ, cảm giác thư thái, dễ chịu không bị nồng quá. Hộp xinh xắn xỉu |
5 |
abf4b968 |
N |
1708338773 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20210 |
6372 |
7325 |
Khánh Vy |
|
|
Tuyệt |
Nhận hộp quà này thực sự là một bất ngờ đáng yêu! Mọi thứ đều tinh tế và chất lượng, nên phải vội bảo bạn để lên review :)) ưng quá chừng |
5 |
abf4b968 |
N |
1708338714 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20206 |
6372 |
7325 |
Kiều Phương |
|
|
Tốt |
Thiệp kèm theo tiện thật sự, sẵn viết chúc gửi mẹ luôn hehe. Mình gửi về quê cho mẹ, nên dặn đóng gõi cẩn thận, mẹ nhận báo không có hư hại gì, ưng ý quáaa. |
5 |
abf4b968 |
N |
1708338700 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20203 |
6372 |
7325 |
Minh Nguyệt |
|
|
Tốt |
Hương thơm dịu nhẹ, thanh mát, giúp thư giãn tinh thần, dễ ngủ. Bao bì đóng gói chỉn chu cẩn thận |
5 |
abf4b968 |
N |
1708338686 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20198 |
6372 |
7325 |
Ngọc Anh |
|
|
Xinh |
Hộp quà xinh xỉu |
5 |
abf4b968 |
N |
1708338661 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20192 |
6372 |
7325 |
Minh Trung |
|
|
Nhanh |
Giao hàng nhanh |
5 |
abf4b968 |
N |
1708338639 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20187 |
6372 |
7325 |
Minh Quân |
|
|
Tốt |
Sản phẩm như mong đợi, không gặp vấn đề gì |
5 |
abf4b968 |
N |
1708338619 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
20179 |
6372 |
7325 |
Ngọc Bích |
|
|
Tốt |
Thiết kế đơn giản nhưng sang trọng nha |
5 |
abf4b968 |
N |
1708338580 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |