Query time 0.00457
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 (23028,1538)",
"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 |
30031 |
23028 |
6713 |
VPĐD YOUNG-INH CORPORATION |
|
|
|
|
5 |
|
N |
1719398811 |
|
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
|
19138 |
1538 |
5327 |
Nguyệt Trinh |
|
|
Tuyệt vời |
Mật ong ngọt dịu, kết cấu tốt. Mình dùng để uống hàng sáng và nấu đồ ăn thay cho đường. Shop đóng gói cẩn thận lắm. |
5 |
abf4b968 |
Y |
1702539593 |
VN |
79 |
10310 |
Chus chào bạn. Cảm ơn bạn đã dành thời gian chia sẻ trải nghiệm mua sắm tại Chus. Chus và nhà bán rất vui vì bạn đã lựa chọn được sản phẩm ưng ý. Hy vọng bạn sẽ luôn ủng hộ và tin dùng sản phẩm tại Chus trong thời gian tới ạ. Cần hỗ trợ thêm, bạn cứ nhắn Chus bất kì lúc nào. Chúc bạn và gia đình nhiều sức khỏe ạ! |
1703476629 |
0 |
A |
1 |
0 |
0 |
0 |
0 |
|
Viet Nam |
449 |
1538 |
5318 |
Giáp Hải Phong |
|
|
Chất Lượng Cao |
Sản phẩm chất lượng |
5 |
0ea114fd |
N |
1634113725 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
10712 |
1538 |
6364 |
VĂN TRUONG |
|
|
Chất Lượng Cao |
đẹp |
5 |
71a2b5b1 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
2099 |
1538 |
5324 |
INJOON Song |
|
|
Đóng Gói Đẹp |
Good |
5 |
0ea114fd |
N |
1623556130 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |