Query time 0.00610
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": 8,
"filtered": 100,
"index_condition": "cscart_product_reviews.product_id in (17997,17993,17992,17991,17990,4823)",
"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 = '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 |
32245 |
4823 |
7325 |
Đinh Khánh Hà Vy |
|
|
Keo lỳ tái châu |
Lúc đầu mình cứ lo sẽ không thoải mái vì giày cao gót, nhưng ai dè em này êm chân và siêu nhẹ luôn nha. Màu xanh dương nhạt thì xinh xỉu, kiểu dáng đơn giản nhưng lại sang chảnh cực kỳ |
5 |
abf4b968 |
N |
1729245429 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32234 |
4823 |
7325 |
Nguyễn Ngọc Anh |
|
|
Giày đẹp |
Giày đẹp hơn trên hình, mềm và êm chân, tuy nhiên hơi rộng mn đọc kĩ size nhé mình phải lót thêm |
5 |
1b4af3fb |
N |
1729242350 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32130 |
4823 |
10681 |
Châu Anh |
|
|
Gót cao vừa phải, đi rất thoải mái mà không đau chân. |
Giày có thiết kế thanh lịch và màu sắc tinh tế. Gót cao vừa phải, đi rất thoải mái mà không đau chân. |
5 |
1b4af3fb |
N |
1729185830 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32059 |
4823 |
7325 |
Như My |
|
|
giày đẹp, xinh |
một đôi giày hết sức là Tấm Cám, nói chung là thấy đẹp, vải nhung tốt, được làm cẩn thận nhìn không có lỗi. Mang giày vô mà tưởng mình là công chúa không á trời |
5 |
abe3c817 |
N |
1729076527 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |