{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.88"
},
"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": 51,
"rows_produced_per_join": 51,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.93",
"eval_cost": "5.10",
"prefix_cost": "6.03",
"data_read_per_join": "816"
},
"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": 51,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.75",
"eval_cost": "5.10",
"prefix_cost": "23.88",
"data_read_per_join": "133K"
},
"used_columns": [
"category_id",
"id_path"
]
}
}
]
}
}
| id_path |
|---|
| 3 |
| 4 |
| 8 |
| 23 |
| 5/24 |
| 8/42 |
| 4/48 |
| 4/51 |
| 71/72 |
| 78 |
| 8/80 |
| 71/91 |
| 5/92 |
| 5/97 |
| 5/98 |
| 8/103 |
| 78/108 |
| 109/110 |
| 109/113 |
| 109/116 |
| 109/118 |
| 4/179 |
| 4/46/195 |
| 4/46/206 |
| 4/51/256 |
| 4/275 |
| 3/20/329 |
| 3/21/336 |
| 2566 |
| 4729/4648 |
| 4729/4649 |
| 4729/4650 |
| 4729/4651 |
| 4729/4652 |
| 4729/4728 |
| 4729 |
| 4729/4730 |
| 4729/4731 |
| 4729/4732 |
| 4733 |
| 4733/4734 |
| 4733/4735 |
| 4736 |
| 4729/4737 |
| 4729/4738 |
| 4729/4739 |
| 4733/4743 |
| 4904 |
| 5/24/6661 |
| 10196 |
| 14468 |