{
"query_block": {
"select_id": 1,
"cost": 0.133774664,
"filesort": {
"sort_key": "pc.category_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "ab__products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"loops": 1,
"rows": 6,
"cost": 0.001620162,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["tmall.ab__products_categories.product_id"],
"loops": 6,
"rows": 1,
"cost": 0.004005362,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "pc",
"access_type": "ref",
"possible_keys": ["pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["tmall.ab__products_categories.product_id"],
"loops": 6,
"rows": 11,
"cost": 0.085373628,
"filtered": 100
}
}
]
}
}
}
}
| category_id | total_products |
|---|---|
| 243 | 5 |