{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.97"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.56"
},
"nested_loop": [
{
"table": {
"table_name": "b",
"access_type": "ALL",
"possible_keys": [
"thread_id",
"thread_id_2"
],
"rows_examined_per_scan": 56,
"rows_produced_per_join": 5,
"filtered": "10.00",
"cost_info": {
"read_cost": "12.57",
"eval_cost": "1.12",
"prefix_cost": "13.69",
"data_read_per_join": "2K"
},
"used_columns": [
"post_id",
"thread_id",
"status"
],
"attached_condition": "((`atulecarter_atul_demo1`.`b`.`status` = 'A') and (`atulecarter_atul_demo1`.`b`.`thread_id` is not null))"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"object_id"
],
"key": "PRIMARY",
"used_key_parts": [
"thread_id"
],
"key_length": "3",
"ref": [
"atulecarter_atul_demo1.b.thread_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "5.60",
"eval_cost": "0.11",
"prefix_cost": "20.41",
"data_read_per_join": "13"
},
"used_columns": [
"thread_id",
"object_id",
"object_type"
],
"attached_condition": "(`atulecarter_atul_demo1`.`a`.`object_type` = 'M')"
}
}
]
}
}
}
object_id | total_items |
---|---|
3 | 1 |
4 | 1 |
5 | 1 |