Query time 0.08676
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": "ref",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"rows": 2,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 217 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": ["cscart.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": ["cscart.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": ["cscart.cscart_product_reviews.country_code", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_country_descriptions.lang_code = 'ru')"
}
}
]
}
}
Result
| product_review_id |
product_id |
user_id |
name |
advantages |
disadvantages |
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 |
| 94 |
217 |
0 |
Нина Гаврилова |
|
|
Очень мощный компьютер, высокая производительность и быстродействие. Отлично воспроизводит видео и игры без торможения. |
5 |
7f000001 |
N |
1410379746 |
|
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
|
| 93 |
217 |
0 |
Илья Ефимов |
|
|
Купил месяца полтора назад. Работает очень быстро и без сбоев, тихо. Оценка 4 так как сначала было не привычно пользоваться вертикальным приводом CD и DVD дисков, но потом это не вызвало неудобств. Так же отмечу из плюсов два порта USB на передней панели. Из минусов, что они за дверцей на которую надо нажать, чтобы до них добраться, но это для красоты:) Еще не с первого раза включается кнопка питания (просто надо посильней нажать), что для женщин может быть неудобно. Так же радует компактность блока. |
4 |
7f000001 |
N |
1410324426 |
|
|
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
|