{
"query_block": {
"select_id": 1,
"cost": 0.021735607,
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": ["idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"loops": 1,
"rows": 7,
"cost": 0.009427625,
"filtered": 100
}
},
{
"table": {
"table_name": "p",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["tmall.gp.product_id"],
"loops": 7,
"rows": 1,
"cost": 0.012307982,
"filtered": 100
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 278 | 0 | 10 | 1 |
| 279 | 278 | 10 | 1 |
| 280 | 0 | 10 | 1 |
| 281 | 280 | 10 | 1 |
| 282 | 0 | 10 | 1 |
| 284 | 282 | 10 | 1 |
| 283 | 282 | 10 | 1 |