Query time 0.51297
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 = 150"
}
},
{
"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 |
28399 |
35648 |
7325 |
Ngọc Ánh |
|
|
Trang trí oke nha, mình mua về decor quán oke |
Trang trí oke nha, mình mua về decor quán oke |
5 |
abf4b968 |
N |
1716886157 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18675 |
35651 |
5760 |
Nghi |
|
|
Tuyệt vời |
Mua treo noel để treo mùa hè, tuyệt! |
5 |
abf4b968 |
N |
1691686819 |
VN |
75 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
18664 |
35653 |
5760 |
Nghi |
|
|
Tuyệt vời |
Treo lên tường trông nghệ hẳn. Quá đẹp |
5 |
abf4b968 |
N |
1691686355 |
VN |
75 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17737 |
35642 |
5750 |
Ms Phương |
|
|
Đánh giá cao |
Tôi thật sự hài lòng với sản phẩm Bọc Ghế Đôn Macrame này. Chất liệu macrame tạo cảm giác tự nhiên và thân thiện với môi trường. Thiết kế tỉ mỉ và đan chéo tạo nên một chiếc đôn đẹp mắt và phong cách, hoàn hảo cho không gian nội thất của tôi. Nó cũng rất thoải mái và hỗ trợ chân tuyệt vời |
5 |
abf4b968 |
N |
1690520812 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
17736 |
648 |
5750 |
Ms Phương |
|
|
Tuyệt vời |
Sản phẩm Bọc Gối Tựa Lưng Macrame vừa vặn và thoải mái. Tôi đã sử dụng nó trên ghế sofa và ghế ngồi trong xe hơi và nó thực sự giúp giảm căng thẳng và đau lưng khi ngồi trong thời gian dài. Ngoài ra, chất liệu macrame đẹp mắt và tỉ mỉ, tạo nên sự cảm giác sang trọng cho không gian |
5 |
abf4b968 |
N |
1690520748 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
10157 |
2588 |
6340 |
Oanh ntx |
|
|
Chất Lượng Cao |
đẹp |
5 |
71a2b5b1 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
12817 |
647 |
5750 |
Trần Khánh Linh |
|
|
Chất Lượng Cao |
đẹp |
5 |
0ea10149 |
N |
1627007940 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
10977 |
655 |
5295 |
Cai Ðức Sinh |
|
|
Chất Lượng Cao |
ok |
5 |
0ea10149 |
N |
1623556474 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |