Query time 0.00078
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 31,
"filtered": 100,
"attached_condition": "p.product_id in (19053,22080,20952,19054,22500,20953,19055,22501,20950,22502,20951,19058,22503,19821,19059,22504,22505,19061,19102,20730,19051,19067,19514,19052,19057,19373,19060,7176,19062,19136,20790)",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_discussion",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "object_id", "idx_company_id"],
"key": "object_id",
"key_length": "10",
"used_key_parts": ["object_id", "object_type", "company_id"],
"ref": ["lillyshop_lillyshop.p.product_id", "const", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "cscart_discussion.object_type = 'P'"
}
},
{
"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": ["lillyshop_lillyshop.cscart_discussion.thread_id", "const"],
"rows": 2,
"filtered": 100,
"index_condition": "dp.`status` = 'A'"
}
}
]
}
}