{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.70"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "7.35",
"data_read_per_join": "336"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "p",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"gaseus.gp.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "14.70",
"data_read_per_join": "137K"
},
"used_columns": [
"product_id",
"company_id"
]
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 11121 | 11111 | 464 | 1 |
| 11130 | 11111 | 464 | 1 |
| 11131 | 11111 | 464 | 1 |
| 11132 | 11111 | 464 | 1 |
| 11126 | 11111 | 464 | 1 |
| 11127 | 11111 | 464 | 1 |
| 11128 | 11111 | 464 | 1 |
| 11129 | 11111 | 464 | 1 |
| 11122 | 11111 | 464 | 1 |
| 11123 | 11111 | 464 | 1 |
| 11124 | 11111 | 464 | 1 |
| 11125 | 11111 | 464 | 1 |
| 11120 | 11111 | 464 | 1 |
| 11119 | 11111 | 464 | 1 |
| 11118 | 11111 | 464 | 1 |
| 11117 | 11111 | 464 | 1 |
| 11116 | 11111 | 464 | 1 |
| 11115 | 11111 | 464 | 1 |
| 11114 | 11111 | 464 | 1 |
| 11113 | 11111 | 464 | 1 |
| 11112 | 11111 | 464 | 1 |
| 11111 | 0 | 464 | 1 |