{
"query_block": {
"select_id": 1,
"table": {
"table_name": "c",
"access_type": "ALL",
"rows": 217,
"filtered": 100,
"attached_condition": "c.company_id = 1 and c.id_path like '%283%' and c.`status` = 'A'"
},
"table": {
"table_name": "sm",
"access_type": "ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["noframes_angrybeaver.c.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(sm.search_phrases <> 'NULL' or c.`level` = (subquery#2)) and trigcond(sm.lang_code = 'ru')"
},
"subqueries": [
{
"query_block": {
"select_id": 2,
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": ["PRIMARY", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
}
}
}
]
}
}
| parent_id | search_phrases | category_id |
|---|---|---|
| 280 | 283 | |
| 283 | 667 | |
| 283 | 1629 | |
| 283 | 1636 | |
| 283 | 1638 | |
| 283 | 1641 | |
| 283 | 1649 | |
| 283 | 1669 | |
| 283 | 1674 | |
| 283 | 1675 | |
| 283 | 1677 | |
| 283 | 1678 | |
| 283 | 1681 |