{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "4.00",
"prefix_cost": "10.00",
"data_read_per_join": "320"
},
"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": [
"pankajecarter_systemfour.gp.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "34.00",
"data_read_per_join": "88K"
},
"used_columns": [
"product_id",
"company_id"
]
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 339 | 0 | 13 | 1 |
| 338 | 339 | 13 | 1 |
| 337 | 339 | 13 | 1 |
| 335 | 0 | 13 | 1 |
| 334 | 335 | 13 | 1 |
| 333 | 335 | 13 | 1 |
| 331 | 0 | 13 | 1 |
| 330 | 331 | 13 | 1 |
| 329 | 331 | 13 | 1 |
| 341 | 0 | 13 | 1 |
| 342 | 341 | 13 | 1 |
| 343 | 341 | 13 | 1 |
| 371 | 331 | 13 | 1 |
| 372 | 331 | 13 | 1 |
| 373 | 335 | 13 | 1 |
| 374 | 335 | 13 | 1 |
| 375 | 339 | 13 | 1 |
| 376 | 339 | 13 | 1 |
| 377 | 341 | 13 | 1 |
| 378 | 341 | 13 | 1 |