Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.60"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.06",
"eval_cost": "2.30",
"prefix_cost": "10.36",
"data_read_per_join": "368"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`aomnia_com`.`p`.`product_id` in (548,554,330,546,541,542,534,533,536,545,552,544,551,549,532,531,535,537,543,553,540,547,538))"
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"aomnia_com.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "18.41",
"data_read_per_join": "8K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"aomnia_com.p.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 69,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.25",
"eval_cost": "6.94",
"prefix_cost": "42.60",
"data_read_per_join": "7K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}