Query time 0.00080
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": "range",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 4,
"filtered": 100,
"index_condition": "cscart_product_reviews.product_id in (35176,35243)",
"attached_condition": "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 |
32186 |
35176 |
7325 |
Hoàng Hà |
|
|
Charm dễ thương |
Vòng tay bạc này đeo nhẹ nhàng, charm biểu tượng Việt Nam siêu xinh, cầm lên chắc tay lắm. Mình đeo đi đâu ai cũng hỏi mua ở đâu. |
5 |
abe3c817 |
N |
1729202787 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32103 |
35176 |
10681 |
Minh Tuyết |
|
|
Bạc sáng, charm được làm chi tiết và nổi bật |
Bạc sáng, charm được làm chi tiết và nổi bật. Đeo lên tay cảm giác rất thoải mái nhaa |
5 |
1b4af3fb |
N |
1729181911 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32002 |
35176 |
7325 |
Nguyễn Ngọc Ánh |
|
|
Xịn xỉu ngang xỉu dọc |
Vòng tay đúng xịn luôn! Thiết kế charm Việt Nam kiểu sang mà vẫn tinh tế, đeo vô cảm giác tự hào ghê luôn. Nhìn nhỏ nhỏ vậy thôi chứ chi tiết sắc sảo lắm nha |
5 |
abf4b968 |
N |
1729071151 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
31951 |
35176 |
7325 |
Đặng Cẩm Tú |
|
|
vòng tay rất đẹp |
Vòng bạc đẹp và charm rất Việt Nam kiểu độc lạ, không dễ dàng tìm thấy trên mạng ở nơi khác nên cho 10d chỗ này nhé ^^ |
5 |
1b4af3fb |
N |
1728962173 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |