Query time 0.00216
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": "range",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 14,
"filtered": 100,
"index_condition": "cscart_product_reviews.product_id in (337,25882,25883,25884)",
"attached_condition": "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 |
13524 |
337 |
5848 |
Công Ðức Tuệ |
|
|
Tuyệt Vời |
Ăn vặt bằng bánh này mình thấy hợp lý hơn là các loại snack khác, vị nó vừa ko có ngọt lắm đâu, ăn cũng mềm ko bị những ngắt như các loại bánh mình ăn trước đó |
5 |
0ea10149 |
N |
1663117044 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11457 |
337 |
5848 |
Phí Hải Long |
|
|
Tuyệt Vời |
Mười điểm 10đ |
4 |
0ea10149 |
N |
1660128481 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
893 |
337 |
5848 |
Huyen Vu |
|
|
Bánh ngon |
Ăn vặt nhưng vẫn đủ năng lượng để làm việc ? |
5 |
0ea114fd |
N |
1644463191 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11013 |
337 |
5848 |
Đậu Duy Cương |
|
|
Good Quality |
great snack |
5 |
0ea10149 |
N |
1644320051 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
15131 |
337 |
5848 |
Khúc Ðình Diệu |
|
|
Chất Lượng Cao |
Mỗi thanh cung cấp đầy đủ năng lượng mà lại tiện lợi cho những người không có nhiều thời gian chuẩn bị bữa sáng , trước và sau tập thể dục. |
5 |
0ea10149 |
N |
1644292805 |
VN |
01 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11932 |
337 |
5848 |
Ngô Ðạt Hòa |
|
|
Chất Lượng Cao |
Ngon |
4 |
0ea10149 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
5703 |
337 |
5848 |
Tào Hoài Việt |
|
|
Chất Lượng Cao |
ok |
5 |
0ea10149 |
N |
1623556474 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |