{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "13.30"
},
"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": 19,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "1.90",
"prefix_cost": "6.65",
"data_read_per_join": "304"
},
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "1.90",
"prefix_cost": "13.30",
"data_read_per_join": "124K"
},
"used_columns": [
"product_id",
"company_id"
]
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 11047 | 0 | 461 | 1 |
| 11048 | 11047 | 461 | 1 |
| 11049 | 11047 | 461 | 1 |
| 11050 | 11047 | 461 | 1 |
| 11051 | 11047 | 461 | 1 |
| 11052 | 11047 | 461 | 1 |
| 11053 | 11047 | 461 | 1 |
| 11054 | 11047 | 461 | 1 |
| 11055 | 11047 | 461 | 1 |
| 11056 | 11047 | 461 | 1 |
| 11057 | 11047 | 461 | 1 |
| 11058 | 11047 | 461 | 1 |
| 11059 | 11047 | 461 | 1 |
| 11060 | 11047 | 461 | 1 |
| 11061 | 11047 | 461 | 1 |
| 11062 | 11047 | 461 | 1 |
| 11063 | 11047 | 461 | 1 |
| 11065 | 11047 | 461 | 1 |
| 11066 | 11047 | 461 | 1 |
| 11064 | 11047 | 461 | 1 |