Query time 0.00358
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": 12,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 5987 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 |
18962 |
5987 |
6797 |
Thanh Tú |
|
|
Ngon đỉnh cao ngon tuyệt vời |
Nấm sấy giòn nhưng vẫn có độ mềm, ăn vào kiểu bột bột nhưng không ngán, gia vị vừa. Thơm mùi nấm nha siu ngon |
5 |
1b4edebc |
N |
1692613246 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17268 |
5987 |
5948 |
Quỳnh Hương |
|
|
High quality |
100/10 huhu cực thích ăn nấm sấy luôn nma loại nhập mắc xỉu, giờ có chỗ này giá vừa ok vừa ngon đỉnhhhh, nấm giòn mà xốp xốp đã lắm gia vị cũng ngon |
5 |
abf4b968 |
N |
1690196690 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
16730 |
5987 |
5608 |
Vy Vo |
|
|
Tuyệt vời |
Rất ngon. vị dễ ăn, giao hàng nhanh |
5 |
1b4af3fb |
N |
1689675293 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
15303 |
5987 |
5324 |
Injoon song |
|
|
Taste healthy but GOOOOOD~ |
perfect snack for afternoon in the office. very healthy and tasty. |
5 |
1b4af6f8 |
Y |
1666352797 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
7 |
0 |
0 |
|
|
Viet Nam |
11888 |
5987 |
5948 |
Viên Hồng Diễm |
|
|
Đóng Gói Đẹp |
thơm |
5 |
0ea10149 |
N |
1628078543 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
11871 |
5987 |
5948 |
Lường Nguyên Giáp |
|
|
Chất Lượng Cao |
Ngon |
5 |
0ea10149 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |