Query time 0.49644
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": "ALL",
"possible_keys": ["idx_product_id"],
"rows": 25675,
"filtered": 100,
"attached_condition": "cscart_product_reviews.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "cscart_products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev_db.cscart_product_reviews.product_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_products.company_id = 244"
}
},
{
"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 |
18771 |
1787 |
7206 |
Phuong Dang |
|
|
Tuyệt vời |
Đẹp và xịn dữ lắm luôn |
5 |
1b4af3fb |
N |
1691728531 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18770 |
6111 |
7206 |
Phuong Dang |
|
|
Tuyệt vời |
Tôi thật sự không ngại mua thêm sản phẩm từ shop. Công nhận là đẹp hết chỗ chê mà |
5 |
1b4af3fb |
N |
1691728498 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18769 |
1795 |
7206 |
Phuong Dang |
|
|
Tuyệt vời |
Rất thích sản phẩm thủ công từ cửa hàng |
5 |
1b4af3fb |
N |
1691728442 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18768 |
6112 |
7206 |
Phuong Dang |
|
|
Tuyệt vời |
Sản phẩm đẹp, hàng y mô tả |
5 |
1b4af3fb |
N |
1691728358 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18580 |
6109 |
5948 |
Quỳnh Hương |
|
|
High quality |
rất đẹp, gọn góc phòng |
5 |
abf4b968 |
N |
1691662351 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18509 |
6109 |
5608 |
My Vo |
|
|
Đóng gói đẹp |
Hàng đẹp, để sử dụng một thời gian coi có bền không nữa |
5 |
1b4af3fb |
N |
1691653161 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18178 |
6107 |
9507 |
Liam Nguyen |
|
|
High quality |
Their small sizes fit perfectly on my desk! Plus, the beige color adds a touch of elegance to my workspace. |
5 |
abf4b968 |
N |
1691118475 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18008 |
6111 |
9421 |
Kim Thị Bảo Trân |
|
|
Đóng gói đẹp |
good |
5 |
abf4b968 |
N |
1691029536 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17370 |
6108 |
6651 |
Quoc Bao Nguyen |
|
|
Awesome |
xinh |
5 |
1b4af3fb |
N |
1690345945 |
VN |
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17329 |
6111 |
7031 |
Ha Ha |
|
|
Tuyệt vời |
Màu đẹp |
5 |
1b4af6f8 |
N |
1690274297 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |