Query time 0.00242
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 <=> 2958 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 |
26630 |
2958 |
7325 |
Người Kể Chuyện |
|
|
Màu độc lạ |
Mình mê nhất ở chiếc cốc này là màu men độc đáo, óng ánh như pha lê. Khi rót trà vào, màu trà càng thêm đẹp mắt, nhìn thôi đã muốn thưởng thức ngay. Chiếc cốc này thiết kế cũng rất hợp để chụp ảnh sống ảo. Mình đã mua thêm 1 set để tặng bạn thân rồi, ai cũng khen xinh xắn và ưng ý cực kỳ! |
5 |
abf4b968 |
N |
1713858053 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
26629 |
2958 |
7325 |
Linh Nguyễn |
|
|
Chất gốm đẹp |
Chất men mịn màng, sáng bóng, không hề có lỗi nhỏ nào. Mình rất thích cảm giác cầm cốc trà ấm nóng trong tay, nó thật sự mang lại cảm giác thư giãn và thoải mái. |
5 |
abf4b968 |
N |
1713858046 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
26628 |
2958 |
7325 |
Nghiêm Oanh |
|
|
Quá xinh |
đẹp và bền bỉ, không bị phai màu hay trầy xước theo thời gian. Mẹ mình thường dùng cốc trà này để uống trà hoa, trà thảo mộc và cà phê |
5 |
abf4b968 |
N |
1713858045 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
8655 |
2958 |
5562 |
Nông Khánh Hoàn |
|
|
Chất Lượng Cao |
ok |
5 |
0ea10149 |
N |
1623556474 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |