{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.00"
},
"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": 30,
"rows_produced_per_join": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.50",
"eval_cost": "3.00",
"prefix_cost": "10.50",
"data_read_per_join": "480"
},
"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": [
"test2_gaseus.gp.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.50",
"eval_cost": "3.00",
"prefix_cost": "21.00",
"data_read_per_join": "195K"
},
"used_columns": [
"product_id",
"company_id"
]
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 12713 | 12684 | 873 | 1 |
| 12712 | 12684 | 873 | 1 |
| 12711 | 12684 | 873 | 1 |
| 12710 | 12684 | 873 | 1 |
| 12709 | 12684 | 873 | 1 |
| 12708 | 12684 | 873 | 1 |
| 12707 | 12684 | 873 | 1 |
| 12706 | 12684 | 873 | 1 |
| 12705 | 12684 | 873 | 1 |
| 12684 | 0 | 873 | 1 |
| 12685 | 12684 | 873 | 1 |
| 12686 | 12684 | 873 | 1 |
| 12687 | 12684 | 873 | 1 |
| 12688 | 12684 | 873 | 1 |
| 12689 | 12684 | 873 | 1 |
| 12690 | 12684 | 873 | 1 |
| 12691 | 12684 | 873 | 1 |
| 12692 | 12684 | 873 | 1 |
| 12693 | 12684 | 873 | 1 |
| 12694 | 12684 | 873 | 1 |
| 12695 | 12684 | 873 | 1 |
| 12696 | 12684 | 873 | 1 |
| 12697 | 12684 | 873 | 1 |
| 12698 | 12684 | 873 | 1 |
| 12699 | 12684 | 873 | 1 |
| 12700 | 12684 | 873 | 1 |
| 12701 | 12684 | 873 | 1 |
| 12702 | 12684 | 873 | 1 |
| 12703 | 12684 | 873 | 1 |
| 12704 | 12684 | 873 | 1 |