{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.42"
},
"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": 35,
"rows_produced_per_join": 35,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.67",
"eval_cost": "3.50",
"prefix_cost": "4.17",
"data_read_per_join": "560"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.75",
"eval_cost": "3.50",
"prefix_cost": "16.42",
"data_read_per_join": "91K"
},
"used_columns": [
"category_id",
"id_path"
]
}
}
]
}
}
| id_path |
|---|
| 23 |
| 23/31 |
| 71/75 |
| 2/82 |
| 4/100 |
| 2/13/132 |
| 2/13/137 |
| 2/16/139 |
| 2/17/147 |
| 2/17/148 |
| 4/45/185 |
| 4/45/191 |
| 4/46/205 |
| 4/100/209 |
| 4/100/212 |
| 15578 |
| 15578/15579 |
| 15578/15580 |
| 15578/15581 |
| 15582/15584 |
| 15582/15585 |
| 15582/15587 |
| 15588 |
| 15588/15590 |
| 15582/15591 |
| 15582/15593 |
| 15578/15616 |
| 15578/15633 |
| 15578/15634 |
| 15578/15636 |
| 15578/15805 |
| 15588/15590/16033 |
| 15588/16111 |
| 15578/16218 |