{
"query_block": {
"select_id": 1,
"cost": 0.084924511,
"nested_loop": [
{
"table": {
"table_name": "tmall_products_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 1,
"rows": 20,
"cost": 0.037351962,
"filtered": 100,
"index_condition": "tmall_products_categories.product_id in (97,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118)"
}
},
{
"table": {
"table_name": "tmall_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["tmall.tmall_products_categories.category_id"],
"loops": 20,
"rows": 1,
"cost": 0.03478532,
"filtered": 100,
"attached_condition": "tmall_categories.storefront_id in (0,1) and (tmall_categories.usergroup_ids = '' or find_in_set(0,tmall_categories.usergroup_ids) or find_in_set(1,tmall_categories.usergroup_ids)) and tmall_categories.`status` in ('A','H')"
}
}
]
}
}
| product_id | category_ids |
|---|---|
| 97 | 242M |
| 100 | 242M |
| 101 | 238M |
| 102 | 227M |
| 103 | 242M |
| 104 | 242M |
| 105 | 238M |
| 106 | 238M |
| 107 | 227M |
| 108 | 242M |
| 109 | 227M |
| 110 | 243M |
| 111 | 243M |
| 112 | 243M |
| 113 | 237M |
| 114 | 243M |
| 115 | 208M |
| 116 | 243M |
| 117 | 237M |
| 118 | 244M |