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": "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 <=> 5778 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 |
23153 |
5778 |
7325 |
Timmy Tran |
|
|
Good |
Beyond resolving my issue, customer service offered additional tips and resources to enhance my product experience. |
5 |
1b4af3fb |
N |
1711435864 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23152 |
5778 |
7325 |
Ánh Dương |
|
|
Tuyệt |
Mua một lần mà nghiện luôn, mua lần này là lần thứ 3 rồi, mua hoài ăn có mặp hong ta? |
5 |
1b4af3fb |
N |
1711435848 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23151 |
5778 |
7325 |
Hồng Đức |
|
|
Ngon |
Sô cô la vị nào cũng ngon, vừa miệng mà còn rất là xinh. Rất là nên mua nhá |
5 |
1b4af3fb |
N |
1711435497 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23150 |
5778 |
7325 |
Phương Linh |
|
|
Ok |
Giá có hơi cao so với mình nhưng mua một hộp có tận 5 vị nguyên bản thì quá oke luôn |
5 |
1b4af3fb |
N |
1711435481 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23149 |
5778 |
7325 |
Tuấn Anh |
|
|
Ngọt ngào |
Vị chocolate đen hòa quyện cùng kem tươi và bơ có hương vị ngọt ngào, béo ngậy, phù hợp với khẩu vị của mình. |
5 |
1b4af3fb |
N |
1711435146 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23148 |
5778 |
7325 |
Quỳnh Nga |
|
|
Tuyệt |
Hộp này đích thị món quà hoàn hảo cho con bạn mình, nó mê chocolate lắm luôn |
5 |
1b4af3fb |
N |
1711435131 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23147 |
5778 |
7325 |
Lan Hương |
|
|
Hợp lý |
Giá cả hợp lý, phù hợp với chất lượng sản phẩm. |
5 |
1b4af3fb |
N |
1711435113 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23146 |
5778 |
7325 |
Đức Thịnh |
|
|
Đẹp |
Phù hợp làm quà tặng cho mọi dịp. |
5 |
1b4af3fb |
N |
1711435096 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23145 |
5778 |
7325 |
Thanh Hải |
|
|
Đẹp |
Hộp chocolate thiết kế đẹp mắt, sang trọng. |
5 |
1b4af3fb |
N |
1711435073 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
23144 |
5778 |
7325 |
Hoàng Nam |
|
|
Đa dạng |
Đa dạng hương vị, phù hợp mọi sở thích. |
5 |
1b4af3fb |
N |
1711435055 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |