Query time 0.00122
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": 7,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 2673 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 |
25896 |
2673 |
7325 |
Odin Nelson |
|
|
Great |
Goodbye greasy chips, hello dried pomelo peels! These are my new go-to snack for a healthy and satisfying pick-me-up, yummy |
5 |
abf4b968 |
N |
1713251177 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25895 |
2673 |
7325 |
Nguyen Hoang Long |
|
|
Tuyệt vời |
Ngon lắm, vị chua ngọt thanh mát, ăn không bị ngán. Mình hay mang theo đi làm để ăn vặt lúc đói, vừa ngon miệng lại tốt cho sức khỏe |
5 |
abf4b968 |
N |
1713251172 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25894 |
2673 |
7325 |
Hoài Phương |
|
|
Ăn vặt đỉnh |
Vỏ bưởi sấy dẻo ngon hơn mấy loại snack thông thường á, vị chua chua ngọt ngọt, dai dai giòn giòn, ăn vặt nhâm nhi đã ghiền |
5 |
abf4b968 |
N |
1713251167 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25893 |
2673 |
7325 |
Athena Young |
|
|
Love it |
They are a great addition to my diet plan |
5 |
abf4b968 |
N |
1713251166 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25892 |
2673 |
7325 |
Nguyễn Hiếu Thảo |
|
|
Ngon mà khỏe nữa |
Vị chua chua ngọt ngọt, dai dai giòn giòn, ăn đã ghiền mà còn tốt cho da, tóc, hỗ trợ giảm mỡ nữa. Thay vì ăn bim bim, kẹo bánh đầy dầu mỡ, giờ mình ăn cái này là vừa ngon vừa tốt luôn, tưởng khó ăn mà ăn xong là nghiền luôn á |
5 |
abf4b968 |
N |
1713251165 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25891 |
2673 |
7325 |
Nguyễn Hoàng Minh |
|
|
Ngon |
Tưởng khó ăn mà không nha, ngon lắm á |
5 |
abf4b968 |
N |
1713251164 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
25890 |
2673 |
7325 |
Artemis Walker |
|
|
Good |
Looking for a natural way to take care of your skin and hair? Look no further than dried pomelo peels! They're packed with nutrients that make a real difference. |
5 |
abf4b968 |
N |
1713251162 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
879 |
2673 |
5432 |
Phượng Đặng Thu |
|
|
Chất Lượng Cao |
Đúng chất lượng |
5 |
0ea114fd |
N |
1644416384 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
308 |
2673 |
5292 |
Tào Anh Khoa |
|
|
Chất Lượng Cao |
Ngon |
5 |
0ea114fd |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |