{
"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": [
"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 |
|---|---|---|---|
| 11851 | 0 | 513 | 1 |
| 11852 | 11851 | 513 | 1 |
| 11853 | 11851 | 513 | 1 |
| 11854 | 11851 | 513 | 1 |
| 11855 | 11851 | 513 | 1 |
| 11856 | 11851 | 513 | 1 |
| 11857 | 11851 | 513 | 1 |
| 11858 | 11851 | 513 | 1 |
| 11859 | 11851 | 513 | 1 |
| 11860 | 11851 | 513 | 1 |
| 11861 | 11851 | 513 | 1 |
| 11862 | 11851 | 513 | 1 |
| 11863 | 11851 | 513 | 1 |
| 11864 | 11851 | 513 | 1 |
| 11865 | 11851 | 513 | 1 |
| 11866 | 11851 | 513 | 1 |
| 11867 | 11851 | 513 | 1 |
| 11868 | 11851 | 513 | 1 |