Query time 0.00132
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.77"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_discussion_posts",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"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": "(`wearethehelpful_scalesta_net`.`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": [
"wearethehelpful_scalesta_net.cscart_discussion_posts.post_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "90.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "0.77",
"data_read_per_join": "4"
},
"used_columns": [
"message",
"post_id"
],
"attached_condition": "(`wearethehelpful_scalesta_net`.`cscart_discussion_messages`.`message` <> '')"
}
}
]
}
}
}
Result
| post_id |
thread_id |
name |
timestamp |
user_id |
ip_address |
status |
message |
| 124 |
3832 |
Judy Collins |
1732745832 |
0 |
79de536c |
A |
Dear Kate,
Your parents were so proud of you when you began this journey. Your beautiful mum loved everything about 'We are the Helpful' and we all wish she could have seen the concept come to fruition.
I have always known that you inherited many wonderful qualities from your parents....sincere caring thought for others, humour, and last but not least, the ability to lift others and help them feel supported and loved.
Congratulations, Love Judy |
| 123 |
3832 |
Alison |
1732615905 |
0 |
0192491b |
A |
Hi Katie, that is such a raw, honest and heartbreaking experience you have shared.
Your beautiful mum would be so very proud of your new venture. It comes from your heart to help and care for others. I wish you every success. Lots of love Al. |