{
"query_block": {
"select_id": 1,
"cost": 0.021757786,
"nested_loop": [
{
"table": {
"table_name": "tmall_product_sales",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "pa"],
"loops": 1,
"rows": 6,
"cost": 0.01097403,
"filtered": 100,
"attached_condition": "tmall_product_sales.product_id in (12,148,5,23,1,149,79,238,239,172,167,8,150,13)"
}
},
{
"table": {
"table_name": "tmall_products_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "link_type", "pt"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["category_id", "product_id"],
"ref": [
"tmall.tmall_product_sales.category_id",
"tmall.tmall_product_sales.product_id"
],
"loops": 6,
"rows": 1,
"cost": 0.010783756,
"filtered": 91.54412079,
"attached_condition": "tmall_products_categories.link_type = 'M'"
}
}
]
}
}
| product_id | sales_amount |
|---|---|
| 148 | 0 |