Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "index",
"possible_keys": ["PRIMARY", "p_category_id"],
"key": "p_category_id",
"key_length": "773",
"used_key_parts": ["category_id", "usergroup_ids", "status"],
"rows": 13,
"filtered": 100,
"attached_condition": "c.`status` = 0",
"using_index": true
}
},
{
"table": {
"table_name": "pc",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["demov2026.c.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "pc.category_id in (302,311,312,313)",
"using_index": true
}
},
{
"table": {
"table_name": "p",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["demov2026.pc.product_id"],
"rows": 1,
"filtered": 94.73683929,
"attached_condition": "p.parent_product_id = 0 and p.`status` = 'A'"
}
}
]
}
}
Result
| product_id |
| 358 |
| 359 |
| 360 |
| 361 |
| 362 |
| 363 |
| 364 |
| 365 |
| 345 |
| 346 |
| 348 |
| 366 |
| 367 |
| 368 |
| 369 |
| 370 |
| 371 |