{
"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 |
|---|---|---|---|
| 12483 | 12464 | 861 | 1 |
| 12484 | 12464 | 861 | 1 |
| 12485 | 12464 | 861 | 1 |
| 12486 | 12464 | 861 | 1 |
| 12487 | 12464 | 861 | 1 |
| 12488 | 12464 | 861 | 1 |
| 12489 | 12464 | 861 | 1 |
| 12490 | 12464 | 861 | 1 |
| 12491 | 12464 | 861 | 1 |
| 12482 | 12464 | 861 | 1 |
| 12481 | 12464 | 861 | 1 |
| 12480 | 12464 | 861 | 1 |
| 12479 | 12464 | 861 | 1 |
| 12478 | 12464 | 861 | 1 |
| 12477 | 12464 | 861 | 1 |
| 12476 | 12464 | 861 | 1 |
| 12475 | 12464 | 861 | 1 |
| 12474 | 12464 | 861 | 1 |
| 12473 | 12464 | 861 | 1 |
| 12472 | 12464 | 861 | 1 |
| 12471 | 12464 | 861 | 1 |
| 12470 | 12464 | 861 | 1 |
| 12469 | 12464 | 861 | 1 |
| 12468 | 12464 | 861 | 1 |
| 12467 | 12464 | 861 | 1 |
| 12466 | 12464 | 861 | 1 |
| 12465 | 12464 | 861 | 1 |
| 12464 | 0 | 861 | 1 |
| 12493 | 12464 | 861 | 1 |
| 12492 | 12464 | 861 | 1 |