{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.04"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 45,
"rows_produced_per_join": 45,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.79",
"eval_cost": "4.50",
"prefix_cost": "5.29",
"data_read_per_join": "720"
},
"used_columns": [
"company_id",
"category_id"
]
}
},
{
"table": {
"table_name": "c",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"goimagine.p.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.25",
"eval_cost": "4.50",
"prefix_cost": "21.04",
"data_read_per_join": "117K"
},
"used_columns": [
"category_id",
"id_path"
]
}
}
]
}
}
| id_path |
|---|
| 2 |
| 2/13 |
| 4/51 |
| 71 |
| 71/74 |
| 3/85 |
| 3/87 |
| 71/88 |
| 71/91/90 |
| 109/112 |
| 109/116 |
| 109/117 |
| 109/118 |
| 71/126 |
| 71/127 |
| 3/178 |
| 4/45/183 |
| 4/45/191 |
| 4/51/256 |
| 4/76/278 |
| 3/22/342 |
| 3/22/349 |
| 3/85/384 |
| 2566 |
| 5738 |
| 5739 |
| 5741 |
| 5769 |
| 5770 |
| 5771 |
| 5773 |
| 5774/5775 |
| 5774/5776 |
| 5777 |
| 5778 |
| 5779 |
| 5780 |
| 5781 |
| 5782 |
| 5782/6157 |
| 5782/6158 |
| 5782/6159 |
| 7989 |
| 19302 |
| 21321 |