{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.77"
},
"nested_loop": [
{
"table": {
"table_name": "C",
"access_type": "ref",
"possible_keys": [
"parent"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "3.09",
"eval_cost": "0.05",
"prefix_cost": "3.59",
"data_read_per_join": "5K"
},
"used_columns": [
"category_id",
"parent_id",
"status",
"services"
],
"attached_condition": "(`dev2`.`C`.`status` = 'A')"
}
},
{
"table": {
"table_name": "CD",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"dev2.C.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.13",
"eval_cost": "0.05",
"prefix_cost": "3.77",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"category",
"products_count",
"icon",
"counts"
]
}
}
]
}
}
category_id | services | category | icon | counts | products_count |
---|---|---|---|---|---|
611 | 2 | Мусоровозы | 0 | 39 | |
660 | 2 | Комбинированные дорожные машины | 0 | 178 | |
690 | 2 | Снегоочистители шнекороторные | 0 | 3 | |
700 | 2 | Вакуумные машины | 0 | 19 | |
701 | 2 | Илососные машины | 0 | 9 |