{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.30"
},
"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": 32,
"rows_produced_per_join": 32,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.90",
"eval_cost": "3.20",
"prefix_cost": "4.10",
"data_read_per_join": "512"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "3.20",
"prefix_cost": "15.30",
"data_read_per_join": "83K"
},
"used_columns": [
"category_id",
"id_path"
]
}
}
]
}
}
| id_path |
|---|
| 2 |
| 2/13 |
| 3/14 |
| 2/17 |
| 2/18 |
| 4/45 |
| 3/87 |
| 109/118 |
| 2/13/131 |
| 2/13/134 |
| 2/13/137 |
| 2/17/147 |
| 2/18/170 |
| 2/18/172 |
| 4/45/183 |
| 4/46/205 |
| 4/51/256 |
| 3/14/373 |
| 2512 |
| 2513 |
| 2514 |
| 2515 |
| 2517 |
| 2518 |
| 2519 |
| 2520 |
| 2521 |
| 2522 |
| 2523 |
| 2524 |
| 4869 |
| 5567 |