Query time 0.00095
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": 4,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 41587 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 |
16754 |
41587 |
7031 |
Ha Ha |
|
|
Đánh giá cao |
Bột đậm vị |
5 |
1b4af6f8 |
N |
1689677589 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
1 |
0 |
0 |
|
|
Viet Nam |
16708 |
41587 |
6361 |
Linh |
|
|
Tuyệt vời |
Một ly cacao sữa buổi sáng quá tuỵt lunn |
5 |
1b4af3fb |
N |
1689669034 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
16697 |
41587 |
6941 |
Linh Trần |
|
|
Bất ngờ với độ ngon |
Cảm quan ban đầu là bột không đậm màu, thiên nâu sáng luôn í. Vậy mà mùi hương và vị là không thể chê được, thơm đậm, đầm mũi không bị gắt đâu. Để đi pha uống liền, chứ thấy hứa hẹn lắm luôn! Quá là mê. |
5 |
abf4b968 |
N |
1689664980 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
2 |
0 |
0 |
|
|
Viet Nam |
16666 |
41587 |
6347 |
Vy Pham |
|
|
Tốt |
Thơm ngon nhức nách, đóng gói sản phẩm cẩn thận, giá cả hợp lý, sẽ tiếp tục ủng hộ |
5 |
abf4b968 |
N |
1689662115 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
1 |
0 |
0 |
|
|
Viet Nam |
16591 |
41587 |
7031 |
Ha Ha |
|
|
Đánh giá cao |
Cacao ngọt ngào, sôi động vị hương. Đắm chìm trong socola, tận hưởng đỉnh cao. Thiên đường đắm say, thỏa mãn lòng ta. |
5 |
1b4af6f8 |
N |
1689648557 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |