{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.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": 29,
"rows_produced_per_join": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "2.90",
"prefix_cost": "10.15",
"data_read_per_join": "464"
},
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "2.90",
"prefix_cost": "20.30",
"data_read_per_join": "189K"
},
"used_columns": [
"product_id",
"company_id"
]
}
}
]
}
}
| product_id | parent_product_id | group_id | company_id |
|---|---|---|---|
| 12683 | 12654 | 872 | 1 |
| 12661 | 12654 | 872 | 1 |
| 12662 | 12654 | 872 | 1 |
| 12663 | 12654 | 872 | 1 |
| 12664 | 12654 | 872 | 1 |
| 12665 | 12654 | 872 | 1 |
| 12666 | 12654 | 872 | 1 |
| 12667 | 12654 | 872 | 1 |
| 12668 | 12654 | 872 | 1 |
| 12669 | 12654 | 872 | 1 |
| 12670 | 12654 | 872 | 1 |
| 12671 | 12654 | 872 | 1 |
| 12672 | 12654 | 872 | 1 |
| 12673 | 12654 | 872 | 1 |
| 12674 | 12654 | 872 | 1 |
| 12675 | 12654 | 872 | 1 |
| 12676 | 12654 | 872 | 1 |
| 12677 | 12654 | 872 | 1 |
| 12678 | 12654 | 872 | 1 |
| 12679 | 12654 | 872 | 1 |
| 12680 | 12654 | 872 | 1 |
| 12681 | 12654 | 872 | 1 |
| 12682 | 12654 | 872 | 1 |
| 12660 | 12654 | 872 | 1 |
| 12659 | 12654 | 872 | 1 |
| 12658 | 12654 | 872 | 1 |
| 12657 | 12654 | 872 | 1 |
| 12656 | 12654 | 872 | 1 |
| 12655 | 12654 | 872 | 1 |
| 12654 | 0 | 872 | 1 |