Query time 0.00019
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "p.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "dp",
"access_type": "ALL",
"possible_keys": ["thread_id", "thread_id_2"],
"rows": 17,
"filtered": 100,
"attached_condition": "dp.`status` = 'A'"
}
},
{
"table": {
"table_name": "vi_discussion",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "object_id", "idx_company_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["thread_id"],
"ref": ["devvipiriscom.dp.thread_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "vi_discussion.company_id = 1 and vi_discussion.object_type = 'P'"
}
},
{
"table": {
"table_name": "p",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["devvipiriscom.vi_discussion.object_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "p.product_id in (199,198,201,192,195,191,196,197,200,202,203,204,194)",
"using_index": true
}
}
]
}
}
}
}