Query time 0.00119
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": 100,
"filtered": 100,
"attached_condition": "p.product_id in (11964,18422,11851,11814,11672,11852,12946,11919,11853,11673,13219,13349,11815,11674,12421,13087,11675,7778,6943,11854,13382,13168,11731,13383,12516,12517,7278,11941,11942,11676,8062,11677,11678,11732,12947,7995,11733,12214,13073,13384,13385,11734,11943,13350,12518,7896,11855,11679,11856,13386,7541,11850,11680,13074,11681,12215,9699,11857,12948,12949,11682,11683,11805,11684,11735,11858,12216,11685,11736,11686,11687,11688,8159,11859,11737,11689,12950,11944,11860,12217,11738,13262,13387,11816,11861,7658,8377,11862,11863,13089,11690,12073,11864,11739,13169,7161,18099,11865,12519,12520)",
"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'"
}
}
]
}
}