Query time 0.00259
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.86"
},
"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": 2,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.02",
"prefix_cost": "0.70",
"data_read_per_join": "89"
},
"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.07",
"eval_cost": "0.02",
"prefix_cost": "0.79",
"data_read_per_join": "4"
},
"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.05",
"eval_cost": "0.02",
"prefix_cost": "0.86",
"data_read_per_join": "3"
},
"used_columns": [
"rating_value",
"post_id"
]
}
}
]
}
}
}
Result
| post_id |
thread_id |
name |
timestamp |
user_id |
ip_address |
status |
message |
rating_value |
| 517 |
35 |
Shirley @ Wild Gatherings |
1620223440 |
414 |
ccc37710 |
A |
I purchased the "Felt peony flower brooch pin" and the "Eco printed felted mittens, pink arm warmers". Oh my, what beautiful items! I bought the brooch to go on a vintage wool coat, and the mittens are the "icing on the cake". These mittens are gorgeous. Hand felted, naturally dyed, and with leaves - the natural leaf color and shape transferred to the felt - I've never seen anything like them, so unique and exquisite. The "ultra" of handmade. ♥♥ |
5 |
| 345 |
35 |
Karen Reck |
1612484220 |
346 |
491a4cf8 |
A |
I received my silk scarf with leaf prints today. It is simply lovely — soft, elegant, and printed with lots of detail. The quality would be worth twice the price. The maker wrapped it with whimsy (leaf prints on paper used as stickers) and care. This arrived just five days after ordering. |
5 |