{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.43"
},
"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": 48,
"rows_produced_per_join": 48,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.83",
"eval_cost": "4.80",
"prefix_cost": "5.63",
"data_read_per_join": "768"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "4.80",
"prefix_cost": "22.43",
"data_read_per_join": "125K"
},
"used_columns": [
"category_id",
"id_path"
]
}
}
]
}
}
| id_path |
|---|
| 2 |
| 2/13 |
| 2/17 |
| 2/18 |
| 23 |
| 23/31 |
| 4/45 |
| 3/85 |
| 4/100 |
| 109/110 |
| 109/112 |
| 109/117 |
| 109/118 |
| 109/123 |
| 23/129 |
| 2/13/132 |
| 2/13/133 |
| 2/13/136 |
| 2/13/137 |
| 2/17/147 |
| 2/18/172 |
| 2/18/174 |
| 4/45/183 |
| 4/46/205 |
| 4/46/208 |
| 2/326 |
| 3/85/384 |
| 4148 |
| 4150 |
| 4151 |
| 4148/11978 |
| 4148/11979 |
| 4148/11980 |
| 4148/11981 |
| 4151/11982 |
| 4151/11983 |
| 4151/11984 |
| 4151/11985 |
| 4151/11986 |
| 4148/11996 |
| 4150/14063 |
| 4150/14064 |
| 4150/14065 |
| 4150/14066 |
| 4150/14067 |
| 19340 |
| 20138 |