Query time 0.00092
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": 3,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 26914 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 |
17900 |
26914 |
6347 |
Vy Pham |
|
|
Tốt |
Dùng để lăn mặt - mình hay sử dụng sau khi đi nặn mụn về để thu nhỏ lỗ chân lông và làm dịu da đỡ sưng cục mụn. |
5 |
abf4b968 |
N |
1690874193 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17843 |
26914 |
6823 |
Cherry Tran |
|
|
Đánh giá cao |
Tôi rất thích thanh lăn thạch anh xanh, đây là một sản phẩm tuyệt vời để giúp giảm căng thẳng và tạo cảm giác thư giãn. Tôi thường sử dụng thanh lăn sau khi làm việc căng thẳng hoặc tập thể dục để giúp giảm đau cơ và tăng cường tuần hoàn máu. Tôi cũng thích thiết kế nhỏ gọn và dễ dàng mang theo sản phẩm bất cứ nơi đâu. |
5 |
abf4b968 |
N |
1690790899 |
VN |
01 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17592 |
26914 |
6651 |
Quoc Bao Nguyen |
|
|
High quality |
quá xịn |
5 |
1b4af3fb |
N |
1690355614 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
14016 |
26914 |
5472 |
Chiêm Ngọc Minh |
|
|
Đóng Gói Đẹp |
Ship nhanh, bao bì đẹp. Đá cầm thích, màu đẹp nữa. Mình thấy tiện hay mang đi du lịch để tiện dùng mỗi tối |
5 |
0eba219d |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |