{
"query_block": {
"select_id": 1,
"cost": 0.005892063,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "tmall_discussion_posts.`timestamp` desc",
"table": {
"table_name": "tmall_discussion_posts",
"access_type": "ref",
"possible_keys": ["thread_id", "thread_id_2"],
"key": "thread_id",
"key_length": "3",
"used_key_parts": ["thread_id"],
"ref": ["const"],
"loops": 1,
"rows": 1,
"cost": 0.002024411,
"filtered": 100,
"attached_condition": "tmall_discussion_posts.thread_id <=> 22 and tmall_discussion_posts.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "tmall_discussion_messages",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["tmall.tmall_discussion_posts.post_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
},
{
"table": {
"table_name": "tmall_discussion_rating",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["tmall.tmall_discussion_posts.post_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
}
]
}
}
| post_id | thread_id | name | timestamp | user_id | ip_address | status | message | rating_value |
|---|---|---|---|---|---|---|---|---|
| 14 | 22 | Alex | 1383914559 | 0 | 10.7.7.93 | A | I was looking for a handy and easy-to-use camcorder when I came across this little bird, and I have to say — it really does everything perfectly! Whether you just want to catch some memory in a form of a video, or plan to do a full video project — this camcorder will become your best friend! All the necessary features are present and easily adjustable. I didn't come across any problem using this amazing piece of technology. Definitely worth its money! | 4 |