Query time 0.00058
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.015057387,
"filesort": {
"sort_key": "p.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "dp",
"access_type": "index",
"possible_keys": ["thread_id", "thread_id_2"],
"key": "thread_id_2",
"key_length": "6",
"used_key_parts": ["thread_id", "status"],
"loops": 1,
"rows": 2,
"cost": 0.00693929,
"filtered": 100,
"attached_condition": "dp.`status` = 'A'",
"using_index": true
}
},
{
"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": ["u508912950_dev_2025.dp.thread_id"],
"loops": 2,
"rows": 1,
"cost": 0.00342728,
"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": ["u508912950_dev_2025.cscart_discussion.object_id"],
"loops": 2,
"rows": 1,
"cost": 0.00342728,
"filtered": 100,
"attached_condition": "p.product_id in (18508,18509,18510,18511,18513,18514,18515,18516,18517,18518,18519,18520,18521,18522,18523,18524,18525,18526,18527,18528,18529,18530,18531,18532,18533,18534,19936,19937,19938,19939,19940,19941)"
}
}
]
}
}
}
}