Query time 0.00217
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.29"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "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",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.03",
"prefix_cost": "1.05",
"data_read_per_join": "134"
},
"used_columns": [
"post_id",
"thread_id",
"name",
"timestamp",
"user_id",
"ip_address",
"status"
],
"attached_condition": "(`goimagine`.`discussion_posts`.`status` = 'A')"
}
},
{
"table": {
"table_name": "discussion_messages",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"post_id"
],
"key_length": "3",
"ref": [
"goimagine.discussion_posts.post_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.11",
"eval_cost": "0.03",
"prefix_cost": "1.19",
"data_read_per_join": "7"
},
"used_columns": [
"message",
"post_id"
]
}
},
{
"table": {
"table_name": "discussion_rating",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"post_id"
],
"key_length": "3",
"ref": [
"goimagine.discussion_posts.post_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.08",
"eval_cost": "0.03",
"prefix_cost": "1.30",
"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 |
| 627 |
271929 |
stephanie |
1625621100 |
325 |
2f0e8e4d |
A |
was not expecting the sweatshirt to be so soft! It is now my new favorite cozy sweatshirt... and for a great cause :) Will be back! |
5 |
| 622 |
271929 |
Megan Dandurand |
1625233620 |
5012 |
615cf206 |
A |
Fabulous quality products with the cutest designs! They look even better in person. |
5 |
| 417 |
271929 |
Kourtney Shaw |
1617636840 |
3886 |
2fe92bb5 |
A |
I just received my shirt and I couldn't be happier! The shirt is seriously so soft!!! Fits true to size and hugs you in all the right places. Can't wait to strut around and proudly show this off. :) |
5 |