Query time 0.00097
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.011685457,
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 1,
"rows": 2,
"cost": 0.0042687,
"filtered": 100,
"attached_condition": "p.product_id in (15747,15748)"
}
},
{
"table": {
"table_name": "cscart_discussion",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "object_id"],
"key": "object_id",
"key_length": "6",
"used_key_parts": ["object_id", "object_type"],
"ref": ["u508912950_dev_2025.p.product_id", "const"],
"loops": 2,
"rows": 1,
"cost": 0.00338721,
"filtered": 100,
"attached_condition": "cscart_discussion.object_type = 'P'",
"using_index": true
}
},
{
"table": {
"table_name": "dp",
"access_type": "ref",
"possible_keys": ["thread_id", "thread_id_2"],
"key": "thread_id_2",
"key_length": "6",
"used_key_parts": ["thread_id", "status"],
"ref": ["u508912950_dev_2025.cscart_discussion.thread_id", "const"],
"loops": 2,
"rows": 1,
"cost": 0.00276601,
"filtered": 100,
"attached_condition": "dp.`status` = 'A'",
"using_index": true
}
}
]
}
}