{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_discussion_posts.`timestamp` desc",
"table": {
"table_name": "cscart_discussion_posts",
"access_type": "ref",
"possible_keys": ["thread_id", "thread_id_2"],
"key": "thread_id_2",
"key_length": "6",
"used_key_parts": ["thread_id", "status"],
"ref": ["const", "const"],
"rows": 2,
"filtered": 100,
"index_condition": "cscart_discussion_posts.`status` = 'A'",
"attached_condition": "cscart_discussion_posts.thread_id <=> 217 and cscart_discussion_posts.`status` <=> 'A'"
}
}
}
},
{
"table": {
"table_name": "cscart_discussion_messages",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["cscart.cscart_discussion_posts.post_id"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_discussion_rating",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["cscart.cscart_discussion_posts.post_id"],
"rows": 1,
"filtered": 100
}
}
]
}
}
| post_id | thread_id | name | timestamp | user_id | ip_address | status | message | rating_value |
|---|---|---|---|---|---|---|---|---|
| 55 | 217 | Леонид Ефимов | 1409418174 | 0 | 127.0.0.1 | A | Я долгое время использовал продукцию D-Link. Я купил этот маршрутизатор и с 1 дня у меня появились проблемы, он постоянно зависает и требует перезагрузки 2-3 раза в день. | 3 |
| 54 | 217 | Светлана Виноградова | 1409372652 | 0 | 127.0.0.1 | A | Эта вещь просто не работает. Заставила меня обновить прошивку, которая является бета-версией. Избегайте D-Link в целом и данного маршрутизатора в частности! | 2 |