Query time 0.00049
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.32"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_discussion_posts",
"access_type": "ref",
"possible_keys": [
"thread_id",
"thread_id_2"
],
"key": "thread_id",
"used_key_parts": [
"thread_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "10.00",
"index_condition": "(`danishecarter_31jan`.`cscart_discussion_posts`.`thread_id` <=> 3466)",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "0.06",
"prefix_cost": "3.60",
"data_read_per_join": "134"
},
"used_columns": [
"post_id",
"thread_id",
"name",
"timestamp",
"user_id",
"ip_address",
"status"
],
"attached_condition": "(`danishecarter_31jan`.`cscart_discussion_posts`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_discussion_messages",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"post_id"
],
"key_length": "3",
"ref": [
"danishecarter_31jan.cscart_discussion_posts.post_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.30",
"eval_cost": "0.06",
"prefix_cost": "3.96",
"data_read_per_join": "7"
},
"used_columns": [
"message",
"post_id"
]
}
},
{
"table": {
"table_name": "cscart_discussion_rating",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"post_id"
],
"key_length": "3",
"ref": [
"danishecarter_31jan.cscart_discussion_posts.post_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.30",
"eval_cost": "0.06",
"prefix_cost": "4.32",
"data_read_per_join": "4"
},
"used_columns": [
"rating_value",
"post_id"
]
}
}
]
}
}
}
Result
post_id |
thread_id |
name |
timestamp |
user_id |
ip_address |
status |
message |
rating_value |
82 |
3466 |
Peter |
1484307900 |
0 |
5f68c2c5 |
A |
I got headaches from this thing, had to return it to the store. Pity, it looks nice. |
2 |
80 |
3466 |
John |
1484307840 |
0 |
5f68c2c5 |
A |
Picture quality is a bit meh but overall nice TV, good for small living rooms |
4 |
81 |
3466 |
Stacy |
1484307840 |
0 |
5f68c2c5 |
A |
I really like that TV! Much better than the bulky old one we had for almost 15 years! The image is so sharp and crisp! And the sound quality is really good too! |
5 |