Query time 0.00075
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_product_reviews.product_review_timestamp",
"table": {
"table_name": "cscart_product_reviews",
"access_type": "ref",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"rows": 4,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 2157 and 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 |
31940 |
2157 |
7325 |
Lê Thanh Vân |
|
|
Chất lượng cao |
Khăn rất mềm, phơi nhanh khô lắm tuy nhiên hơi dễ nhăn vì lụa tơ tằm nhưng dệt mỏng và mộc mộc chứ không phải lụa satin không nhăn, dùng máy ủi hơi nước thì phẳng mịn lại nha mn |
5 |
1b4af3fb |
N |
1728960427 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
31980 |
2157 |
7325 |
Charity King |
|
|
Highly recommend! |
The coral pink color is so vibrant and perfect for adding a pop of color to any outfit. The material is super soft and luxurious. I've been wearing it almost every day. |
5 |
abf4b968 |
N |
1728986694 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32106 |
2157 |
10681 |
Khánh Vy |
|
|
Chất liệu lụa mềm mại, thoáng mát. |
Chất liệu lụa mềm mại, thoáng mát. Màu sắc tươi sáng, dễ kết hợp với nhiều trang phục. Khăn có kích thước vừa phải, khá hợp với các bộ đồ của mẹ mình. |
5 |
1b4af3fb |
N |
1729182722 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32191 |
2157 |
7325 |
Hoa Bùi |
|
|
Khăn mềm mượt |
Khăn lụa vuông này vừa mềm vừa mượt, màu sắc cũng tươi sáng, rất dễ kết hợp với trang phục hằng ngày. Mình mua làm quà tặng mà ai cũng khen. |
5 |
abe3c817 |
N |
1729203025 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |
32197 |
2157 |
7325 |
Khoa Bùi |
|
|
Khăn mềm mượt |
Khăn lụa vuông này vừa mềm vừa mượt, màu sắc cũng tươi sáng, rất dễ kết hợp với trang phục hằng ngày. Mình mua làm quà tặng mà ai cũng khen. |
5 |
abe3c817 |
N |
1729203988 |
VN |
79 |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
Viet Nam |