Query time 0.00044
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": 4,
"filtered": 100,
"attached_condition": "dp.`status` = 'A'"
}
},
{
"table": {
"table_name": "cscart_discussion",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "object_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["thread_id"],
"ref": ["v8.dp.thread_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_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": ["v8.cscart_discussion.object_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "p.product_id in (347,346,345,344,343,342,341,340,339,338,335,334,333,332,331,330,325,324,323,322)",
"using_index": true
}
}
]
}
}
}
}